def test_can_move_feature_down_in_the_middle(self): index = PriorityIndex(["alice", "bob", "carol", "dave"]) index.change_priority("bob", 3) assert_feature_priorities(index, "alice", "carol", "bob", "dave")
def test_moving_feature_to_same_priority_has_no_effect(self): index = PriorityIndex(["alice", "bob", "carol", "dave"]) index.change_priority("bob", 2) assert_feature_priorities(index, "alice", "bob", "carol", "dave")
def test_can_move_feature_from_middle_to_bottom(self): index = PriorityIndex(["alice", "bob", "carol", "dave"]) index.change_priority("bob", 4) assert_feature_priorities(index, "alice", "carol", "dave", "bob")