예제 #1
0
 def test_it_iterates(self):
     qs = MockQuerySet()
     qs.iter_list = [1,2]
     qslist = list(qs)
     assert qslist == [1,2]
예제 #2
0
 def test_it_indexes(self):
     qs = MockQuerySet()
     qs.iter_list = [1,2]
     assert qs[0] == 1