(self)
| 21 | ) |
| 22 | |
| 23 | def test_non_ascii(self): |
| 24 | authors = Author.objects.annotate(first_initial=Left("name", 1)) |
| 25 | self.assertCountEqual(authors.filter(first_initial=Chr(ord("É"))), [self.elena]) |
| 26 | self.assertCountEqual( |
| 27 | authors.exclude(first_initial=Chr(ord("É"))), [self.john, self.rhonda] |
| 28 | ) |
| 29 | |
| 30 | def test_transform(self): |
| 31 | with register_lookup(IntegerField, Chr): |