Ticket #15738: contenttypes_tests.diff
File contenttypes_tests.diff, 546 bytes (added by , 14 years ago) |
---|
-
django/contrib/contenttypes/tests.py
44 44 # Once we clear the cache, another lookup will again hit the DB 45 45 ContentType.objects.clear_cache() 46 46 ContentType.objects.get_for_model(ContentType) 47 len(db.connection.queries)48 47 self.assertEqual(2, len(db.connection.queries)) 49 48 50 49 def test_shortcut_view(self):