Author: Alex
Date: 2010-06-22 13:09:15 -0500 (Tue, 22 Jun 2010)
New Revision: 13383

Modified:
   django/branches/soc2010/query-refactor/tests/regressiontests/mongodb/tests.py
Log:
[soc2010/query-refactor] Added tests for slicing and count.

Modified: 
django/branches/soc2010/query-refactor/tests/regressiontests/mongodb/tests.py
===================================================================
--- 
django/branches/soc2010/query-refactor/tests/regressiontests/mongodb/tests.py   
    2010-06-22 18:09:08 UTC (rev 13382)
+++ 
django/branches/soc2010/query-refactor/tests/regressiontests/mongodb/tests.py   
    2010-06-22 18:09:15 UTC (rev 13383)
@@ -44,6 +44,9 @@
         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")

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to