MCPcopy
hub / github.com/django/django / test_nested_base

Method test_nested_base

tests/migrations/test_state.py:2056–2062  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2054 self.assertRelated(B, [A])
2055
2056 def test_nested_base(self):
2057 A = self.create_model("A")
2058 B = self.create_model("B", bases=(A,))
2059 C = self.create_model("C", bases=(B,))
2060 self.assertRelated(A, [B, C])
2061 self.assertRelated(B, [A, C])
2062 self.assertRelated(C, [A, B])
2063
2064 def test_multiple_bases(self):
2065 A = self.create_model("A")

Callers

nothing calls this directly

Calls 2

create_modelMethod · 0.95
assertRelatedMethod · 0.95

Tested by

no test coverage detected