MCPcopy
hub / github.com/django/django / test_order_by_nulls_first_and_last

Method test_order_by_nulls_first_and_last

tests/ordering/tests.py:139–144  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

137 )
138
139 def test_order_by_nulls_first_and_last(self):
140 msg = "nulls_first and nulls_last are mutually exclusive"
141 with self.assertRaisesMessage(ValueError, msg):
142 Article.objects.order_by(
143 F("author").desc(nulls_last=True, nulls_first=True)
144 )
145
146 def assertQuerySetEqualReversible(self, queryset, sequence):
147 self.assertSequenceEqual(queryset, sequence)

Callers

nothing calls this directly

Calls 4

FClass · 0.90
assertRaisesMessageMethod · 0.80
order_byMethod · 0.80
descMethod · 0.45

Tested by

no test coverage detected