Limits of size 0 now return no results

This commit is contained in:
Harry Marr
2010-02-24 16:07:26 +00:00
parent 145b0c33fc
commit 2996f8919d
2 changed files with 15 additions and 2 deletions

View File

@@ -102,6 +102,9 @@ class QuerySetTest(unittest.TestCase):
self.assertEqual(len(people), 1)
self.assertEqual(people[0].name, 'User B')
people = list(self.Person.objects[1:1])
self.assertEqual(len(people), 0)
def test_find_one(self):
"""Ensure that a query using find_one returns a valid result.
"""