MCPcopy Index your code
hub / github.com/django-haystack/django-haystack / test_repr

Method test_repr

test_haystack/test_query.py:61–67  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

59 self.assertEqual(sq.split_expression("foo__moof"), ("foo", "content"))
60
61 def test_repr(self):
62 self.assertEqual(repr(SQ(foo="bar")), "<SQ: AND foo__content=bar>")
63 self.assertEqual(repr(SQ(foo=1)), "<SQ: AND foo__content=1>")
64 self.assertEqual(
65 repr(SQ(foo=datetime.datetime(2009, 5, 12, 23, 17))),
66 "<SQ: AND foo__content=2009-05-12 23:17:00>",
67 )
68
69 def test_simple_nesting(self):
70 sq1 = SQ(foo="bar")

Callers

nothing calls this directly

Calls 1

SQClass · 0.90

Tested by

no test coverage detected