(self)
| 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) |
nothing calls this directly
no test coverage detected