mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-26 03:23:59 +03:00
Py2/3 compat for validation test
This commit is contained in:
parent
003c42b0f5
commit
2b535954cd
|
@ -89,7 +89,7 @@ class TestAvoidValidation(TestCase):
|
||||||
self.assertFalse(serializer.is_valid())
|
self.assertFalse(serializer.is_valid())
|
||||||
self.assertDictEqual(serializer.errors, {
|
self.assertDictEqual(serializer.errors, {
|
||||||
'non_field_errors': [
|
'non_field_errors': [
|
||||||
'Invalid data. Expected a dictionary, but got unicode.'
|
'Invalid data. Expected a dictionary, but got %s.' % type('').__name__
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user