Change for loop to self.first()

This commit is contained in:
Jonathan Prates
2014-05-28 13:21:00 -03:00
parent dfdecef8e7
commit ee0c7fd8bf
2 changed files with 3 additions and 7 deletions

View File

@@ -3834,8 +3834,8 @@ class QuerySetTest(unittest.TestCase):
raise AssertionError('There is data, but cursor returned False')
queryset.next()
if queryset:
raise AssertionError('There is no data left in cursor')
if not queryset:
raise AssertionError('There is data, cursor must return True')
if __name__ == '__main__':