MCPcopy
hub / github.com/django/django / test_references_table

Method test_references_table

tests/backends/test_ddl_references.py:202–207  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

200
201class StatementTests(SimpleTestCase):
202 def test_references_table(self):
203 statement = Statement(
204 "", reference=MockReference("", {"table"}, {}, {}), non_reference=""
205 )
206 self.assertIs(statement.references_table("table"), True)
207 self.assertIs(statement.references_table("other"), False)
208
209 def test_references_column(self):
210 statement = Statement(

Callers

nothing calls this directly

Calls 3

references_tableMethod · 0.95
StatementClass · 0.90
MockReferenceClass · 0.85

Tested by

no test coverage detected