Commit 2b535954 by Tom Christie

Py2/3 compat for validation test

parent 003c42b0
...@@ -89,7 +89,7 @@ class TestAvoidValidation(TestCase): ...@@ -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__
] ]
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment