MCPcopy
hub / github.com/django/django / test_str

Method test_str

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

Source from the content-addressed store, hash-verified

246 self.assertEqual(repr(statement), "<Statement 'reference - non_reference'>")
247
248 def test_str(self):
249 reference = MockReference("reference", {}, {}, {})
250 statement = Statement(
251 "%(reference)s - %(non_reference)s",
252 reference=reference,
253 non_reference="non_reference",
254 )
255 self.assertEqual(str(statement), "reference - non_reference")
256
257
258class ExpressionsTests(TransactionTestCase):

Callers

nothing calls this directly

Calls 2

StatementClass · 0.90
MockReferenceClass · 0.85

Tested by

no test coverage detected