MCPcopy
hub / github.com/django/django / test_combine_or_empty

Method test_combine_or_empty

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

Source from the content-addressed store, hash-verified

39 self.assertEqual(Q() & Q(), Q())
40
41 def test_combine_or_empty(self):
42 q = Q(x=1)
43 self.assertEqual(q | Q(), q)
44 self.assertEqual(Q() | q, q)
45
46 q = Q(x__in={}.keys())
47 self.assertEqual(q | Q(), q)
48 self.assertEqual(Q() | q, q)
49
50 def test_combine_xor_empty(self):
51 q = Q(x=1)

Callers

nothing calls this directly

Calls 2

QClass · 0.90
keysMethod · 0.45

Tested by

no test coverage detected