Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
361
class
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
check
Method · 0.95
Q
Class · 0.90
Tested by
no test coverage detected