コード例 #1
0
 def test_should_be_able_to_add_existing(self):
     rrs = RoundRobinSet([1, 2, 3])
     rrs.add(2)
     assert list(rrs) == [1, 2, 3]
コード例 #2
0
 def test_should_be_able_to_add_new(self):
     rrs = RoundRobinSet([1, 2, 3])
     rrs.add(4)
     assert list(rrs) == [1, 2, 3, 4]