MCPcopy
hub / github.com/django/django / test_multivalued_join_reuse

Method test_multivalued_join_reuse

tests/lookup/tests.py:1974–1988  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1972 )
1973
1974 def test_multivalued_join_reuse(self):
1975 self.assertEqual(
1976 Season.objects.get(Exact(F("games__home"), "NY"), games__away="Boston"),
1977 self.s1,
1978 )
1979 self.assertEqual(
1980 Season.objects.get(Exact(F("games__home"), "NY") & Q(games__away="Boston")),
1981 self.s1,
1982 )
1983 self.assertEqual(
1984 Season.objects.get(
1985 Exact(F("games__home"), "NY") & Exact(F("games__away"), "Boston")
1986 ),
1987 self.s1,
1988 )

Callers

nothing calls this directly

Calls 4

ExactClass · 0.90
FClass · 0.90
QClass · 0.90
getMethod · 0.45

Tested by

no test coverage detected