MCPcopy Index your code
hub / github.com/encode/django-rest-framework / setUp

Method setUp

tests/test_relations_pk.py:420–423  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

418class PKRelationTests(TestCase):
419
420 def setUp(self):
421 self.target = ForeignKeyTarget.objects.create(name='target-1')
422 ForeignKeySource.objects.create(name='source-1', target=self.target)
423 ForeignKeySource.objects.create(name='source-2', target=self.target)
424
425 def test_relation_field_callable_source(self):
426 serializer = ForeignKeyTargetCallableSourceSerializer(self.target)

Callers

nothing calls this directly

Calls 1

createMethod · 0.45

Tested by

no test coverage detected