Beispiel #1
0
 def test_can_append_after_removing(self):
     index = PriorityIndex(["alice", "bob", "carol"])
     
     index.remove("bob")
     index.append("dave")
     
     assert_feature_priorities(index, "alice", "carol", "dave")
Beispiel #2
0
 def test_can_remove_last_feature(self):
     index = PriorityIndex(["alice", "bob", "carol", "dave"])
     index.remove("dave")
     
     assert_feature_priorities(index, "alice", "bob", "carol")