Py2/3 compat for validation test

This commit is contained in:
Tom Christie 2014-11-03 14:14:12 +00:00
parent 003c42b0f5
commit 2b535954cd

View File

@ -89,7 +89,7 @@ class TestAvoidValidation(TestCase):
self.assertFalse(serializer.is_valid())
self.assertDictEqual(serializer.errors, {
'non_field_errors': [
'Invalid data. Expected a dictionary, but got unicode.'
'Invalid data. Expected a dictionary, but got %s.' % type('').__name__
]
})