(self)
| 920 | field = serializers.SlugField() |
| 921 | |
| 922 | def test_allow_unicode_true(self): |
| 923 | field = serializers.SlugField(allow_unicode=True) |
| 924 | |
| 925 | validation_error = False |
| 926 | try: |
| 927 | field.run_validation('slug-99-\u0420') |
| 928 | except serializers.ValidationError: |
| 929 | validation_error = True |
| 930 | |
| 931 | assert not validation_error |
| 932 | |
| 933 | |
| 934 | class TestURLField(FieldValues): |
nothing calls this directly
no test coverage detected