MCPcopy
hub / github.com/django/django / test_basic

Method test_basic

tests/queries/test_q.py:362–365  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

360
361class QCheckTests(TestCase):
362 def test_basic(self):
363 q = Q(price__gt=20)
364 self.assertIs(q.check({"price": 30}), True)
365 self.assertIs(q.check({"price": 10}), False)
366
367 def test_expression(self):
368 q = Q(name="test")

Callers

nothing calls this directly

Calls 2

checkMethod · 0.95
QClass · 0.90

Tested by

no test coverage detected