MCPcopy
hub / github.com/django/django / setUpTestData

Method setUpTestData

tests/test_utils/tests.py:274–276  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

272class AssertQuerySetEqualTests(TestCase):
273 @classmethod
274 def setUpTestData(cls):
275 cls.p1 = Person.objects.create(name="p1")
276 cls.p2 = Person.objects.create(name="p2")
277
278 def test_empty(self):
279 self.assertQuerySetEqual(Person.objects.filter(name="p3"), [])

Callers

nothing calls this directly

Calls 1

createMethod · 0.45

Tested by

no test coverage detected