diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2010-06-22 18:09:15 +0000 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2010-06-22 18:09:15 +0000 |
| commit | 9a895a63782057ff9638434897b637012cd801b5 (patch) | |
| tree | 93a324d17c34b268d0d5031acd85302a2904408b /tests/regressiontests/mongodb | |
| parent | d6993c7dbb4ffef939e9061a701be2e442971d3b (diff) | |
[soc2010/query-refactor] Added tests for slicing and count.
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2010/query-refactor@13383 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/mongodb')
| -rw-r--r-- | tests/regressiontests/mongodb/tests.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/regressiontests/mongodb/tests.py b/tests/regressiontests/mongodb/tests.py index e977ebeb42..2f3177fa61 100644 --- a/tests/regressiontests/mongodb/tests.py +++ b/tests/regressiontests/mongodb/tests.py @@ -44,6 +44,9 @@ class MongoTestCase(TestCase): self.assertEqual(Artist.objects.filter(good=False).count(), 1) self.assertEqual(Artist.objects.aggregate(c=Count("pk")), {"c": 6}) + + self.assertEqual(Artist.objects.all()[:3].count(), 3) + self.assertEqual(Artist.objects.all()[3:].count(), 3) def test_foreignkey(self): e = Group.objects.create(name="The E Street Band") |
