MCPcopy
hub / github.com/django/django / test_multiple_bases

Method test_multiple_bases

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

Source from the content-addressed store, hash-verified

2062 self.assertRelated(C, [A, B])
2063
2064 def test_multiple_bases(self):
2065 A = self.create_model("A")
2066 B = self.create_model("B")
2067 C = self.create_model(
2068 "C",
2069 bases=(
2070 A,
2071 B,
2072 ),
2073 )
2074 self.assertRelated(A, [B, C])
2075 self.assertRelated(B, [A, C])
2076 self.assertRelated(C, [A, B])
2077
2078 def test_multiple_nested_bases(self):
2079 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