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_append_features(self):
     index = PriorityIndex(["alice", "bob"])
     
     index.append("carol")
     assert_feature_priorities(index, "alice", "bob", "carol")
     
     index.append("dave")
     assert_feature_priorities(index, "alice", "bob", "carol", "dave")