diff options
| author | Tom Christie | 2015-01-09 11:57:02 +0000 |
|---|---|---|
| committer | Tom Christie | 2015-01-09 11:57:02 +0000 |
| commit | 11efde890556a46f32d486250b1a0b03ce83c17d (patch) | |
| tree | b92ffe89c0268124382f381e7c4ee27d6945a50d /tests/test_relations.py | |
| parent | f0ad0a88c49f1fef473ef1fbf965bcaa974ee062 (diff) | |
| parent | 7f8d314101c4e6e059b00ac12658f0e1055da8f7 (diff) | |
| download | django-rest-framework-11efde890556a46f32d486250b1a0b03ce83c17d.tar.bz2 | |
Merge pull request #2373 from jakul/document-translations-3.1
Document how to translate DRF error messages (version 3.1)
Diffstat (limited to 'tests/test_relations.py')
| -rw-r--r-- | tests/test_relations.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_relations.py b/tests/test_relations.py index 62353dc2..08c92242 100644 --- a/tests/test_relations.py +++ b/tests/test_relations.py @@ -33,7 +33,7 @@ class TestPrimaryKeyRelatedField(APISimpleTestCase): with pytest.raises(serializers.ValidationError) as excinfo: self.field.to_internal_value(4) msg = excinfo.value.detail[0] - assert msg == "Invalid pk '4' - object does not exist." + assert msg == 'Invalid pk "4" - object does not exist.' def test_pk_related_lookup_invalid_type(self): with pytest.raises(serializers.ValidationError) as excinfo: |
