Commit 31893cff by Nikolaus Schlemm

* make test assertion more explicit

* cleanup
parent 88c94f37
......@@ -846,7 +846,7 @@ class HumanizedFieldType(TestCase):
"""
self.assertIsInstance(humanized, unicode)
self.assertTrue(humanized)
self.assertNotEqual(humanized, '')
class HumanizedField(TestCase):
......
......@@ -6,8 +6,6 @@ from rest_framework.decorators import api_view
from rest_framework.response import Response
from rest_framework.settings import api_settings
from rest_framework.views import APIView
from rest_framework import exceptions
from rest_framework import serializers
import copy
factory = RequestFactory()
......@@ -100,4 +98,3 @@ class FunctionBasedViewIntegrationTests(TestCase):
}
self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
self.assertEqual(sanitise_json_error(response.data), expected)
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