summaryrefslogtreecommitdiff
path: root/tests/regressiontests/test_utils/python_25.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/regressiontests/test_utils/python_25.py')
-rw-r--r--tests/regressiontests/test_utils/python_25.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/regressiontests/test_utils/python_25.py b/tests/regressiontests/test_utils/python_25.py
index a1e8a94d1e..c28ae68c2e 100644
--- a/tests/regressiontests/test_utils/python_25.py
+++ b/tests/regressiontests/test_utils/python_25.py
@@ -11,13 +11,11 @@ class AssertNumQueriesTests(TestCase):
pass
with self.assertNumQueries(1):
- # Guy who wrote Linux
- Person.objects.create(name="Linus Torvalds")
+ Person.objects.count()
with self.assertNumQueries(2):
- # Guy who owns the bagel place I like
- Person.objects.create(name="Uncle Ricky")
- self.assertEqual(Person.objects.count(), 2)
+ Person.objects.count()
+ Person.objects.count()
def test_failure(self):
with self.assertRaises(AssertionError) as exc_info: