MCPcopy
hub / github.com/django/django / test_combine_xor_empty

Method test_combine_xor_empty

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

Source from the content-addressed store, hash-verified

48 self.assertEqual(Q() | q, q)
49
50 def test_combine_xor_empty(self):
51 q = Q(x=1)
52 self.assertEqual(q ^ Q(), q)
53 self.assertEqual(Q() ^ q, q)
54
55 q = Q(x__in={}.keys())
56 self.assertEqual(q ^ Q(), q)
57 self.assertEqual(Q() ^ q, q)
58
59 def test_combine_empty_copy(self):
60 base_q = Q(x=1)

Callers

nothing calls this directly

Calls 2

QClass · 0.90
keysMethod · 0.45

Tested by

no test coverage detected