* make test assertion more explicit

* cleanup
This commit is contained in:
Nikolaus Schlemm 2013-05-19 15:12:01 +02:00
parent 88c94f3720
commit 31893cff74
2 changed files with 1 additions and 4 deletions

View File

@ -846,7 +846,7 @@ class HumanizedFieldType(TestCase):
"""
self.assertIsInstance(humanized, unicode)
self.assertTrue(humanized)
self.assertNotEqual(humanized, '')
class HumanizedField(TestCase):

View File

@ -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)