MCPcopy
hub / github.com/django/django / test_tickets_2080_3592

Method test_tickets_2080_3592

tests/queries/tests.py:293–309  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

291 )
292
293 def test_tickets_2080_3592(self):
294 self.assertSequenceEqual(
295 Author.objects.filter(item__name="one") | Author.objects.filter(name="a3"),
296 [self.a1, self.a3],
297 )
298 self.assertSequenceEqual(
299 Author.objects.filter(Q(item__name="one") | Q(name="a3")),
300 [self.a1, self.a3],
301 )
302 self.assertSequenceEqual(
303 Author.objects.filter(Q(name="a3") | Q(item__name="one")),
304 [self.a1, self.a3],
305 )
306 self.assertSequenceEqual(
307 Author.objects.filter(Q(item__name="three") | Q(report__name="r3")),
308 [self.a2],
309 )
310
311 def test_ticket6074(self):
312 # Merging two empty result sets shouldn't leave a queryset with no

Callers

nothing calls this directly

Calls 2

QClass · 0.90
filterMethod · 0.45

Tested by

no test coverage detected