aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework
diff options
context:
space:
mode:
authorXavier Ordoquy2014-03-31 13:17:31 +0200
committerXavier Ordoquy2014-03-31 13:17:31 +0200
commit591cf8a48c6e5ce37d205c4b7e418fb7d2c31b0f (patch)
tree507b9b73f5cb288c50e4365c4aa95f320c5c56e8 /rest_framework
parent1c10886eba61f842e1673f2706a8b020b339e9e8 (diff)
downloaddjango-rest-framework-591cf8a48c6e5ce37d205c4b7e418fb7d2c31b0f.tar.bz2
Content is a binary string.
Diffstat (limited to 'rest_framework')
-rw-r--r--rest_framework/tests/test_validation.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/tests/test_validation.py b/rest_framework/tests/test_validation.py
index 31549df8..e13e4078 100644
--- a/rest_framework/tests/test_validation.py
+++ b/rest_framework/tests/test_validation.py
@@ -144,5 +144,5 @@ class TestMaxValueValidatorValidation(TestCase):
request = factory.patch('/{0}'.format(obj.pk), {'number_value': 101}, format='json')
view = UpdateMaxValueValidationModel().as_view()
response = view(request, pk=obj.pk).render()
- self.assertEqual(response.content, '{"number_value": ["Ensure this value is less than or equal to 100."]}')
+ self.assertEqual(response.content, b'{"number_value": ["Ensure this value is less than or equal to 100."]}')
self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
>168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208