MCPcopy
hub / github.com/django/django / test_ticket6154

Method test_ticket6154

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

Source from the content-addressed store, hash-verified

715 )
716
717 def test_ticket6154(self):
718 # Multiple filter statements are joined using "AND" all the time.
719
720 self.assertSequenceEqual(
721 Author.objects.filter(id=self.a1.id).filter(
722 Q(extra__note=self.n1) | Q(item__note=self.n3)
723 ),
724 [self.a1],
725 )
726 self.assertSequenceEqual(
727 Author.objects.filter(
728 Q(extra__note=self.n1) | Q(item__note=self.n3)
729 ).filter(id=self.a1.id),
730 [self.a1],
731 )
732
733 def test_ticket6981(self):
734 self.assertSequenceEqual(

Callers

nothing calls this directly

Calls 2

QClass · 0.90
filterMethod · 0.45

Tested by

no test coverage detected