(self)
| 33 | ) |
| 34 | |
| 35 | def test_null_argument(self): |
| 36 | authors = Author.objects.annotate( |
| 37 | nullif=NullIf("name", Value(None)) |
| 38 | ).values_list("nullif") |
| 39 | self.assertCountEqual(authors, [("John Smith",), ("Rhonda",)]) |
| 40 | |
| 41 | def test_too_few_args(self): |
| 42 | msg = "'NullIf' takes exactly 2 arguments (1 given)" |
nothing calls this directly
no test coverage detected