diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2014-03-03 14:31:55 +0800 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2014-03-03 14:31:55 +0800 |
| commit | f7587b20da822912f65ba07cd3a5f02076f97338 (patch) | |
| tree | 02635e537719f02032a5cd77bb946e0f1ae9b8b7 /tests/invalid_models_tests/test_ordinary_fields.py | |
| parent | 55ba92a9c9fc22ce5482c1a7d18ffb0003be2b80 (diff) | |
Edited MySQL-specific check messages for grammar and consistency.
Diffstat (limited to 'tests/invalid_models_tests/test_ordinary_fields.py')
| -rw-r--r-- | tests/invalid_models_tests/test_ordinary_fields.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/invalid_models_tests/test_ordinary_fields.py b/tests/invalid_models_tests/test_ordinary_fields.py index 5cbc5005ae..72e19b108d 100644 --- a/tests/invalid_models_tests/test_ordinary_fields.py +++ b/tests/invalid_models_tests/test_ordinary_fields.py @@ -191,11 +191,10 @@ class CharFieldTests(IsolatedModelsTestCase): errors = validator.check_field(field) expected = [ Error( - ('Under mysql backend, the field cannot have a "max_length" ' - 'greated than 255 when it is unique.'), + 'MySQL does not allow unique CharFields to have a max_length > 255.', hint=None, obj=field, - id='E047', + id='mysql.E001', ) ] self.assertEqual(errors, expected) |
