(self)
| 23 | ) |
| 24 | |
| 25 | def test_transform(self): |
| 26 | with register_lookup(CharField, Ord): |
| 27 | authors = Author.objects.annotate(first_initial=Left("name", 1)) |
| 28 | self.assertCountEqual( |
| 29 | authors.filter(first_initial__ord=ord("J")), [self.john] |
| 30 | ) |
| 31 | self.assertCountEqual( |
| 32 | authors.exclude(first_initial__ord=ord("J")), [self.elena, self.rhonda] |
| 33 | ) |
nothing calls this directly
no test coverage detected