mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-24 00:04:16 +03:00
* make test assertion more explicit
* cleanup
This commit is contained in:
parent
88c94f3720
commit
31893cff74
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user