Esempio n. 1
0
 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")
Esempio n. 2
0
 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")
Esempio n. 3
0
 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")