aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/tests
diff options
context:
space:
mode:
authorOscar Vilaplana2013-05-19 15:18:40 +0200
committerOscar Vilaplana2013-05-19 15:18:40 +0200
commit6bbedfd7ae25655d94281764cb375fc7c2d0c13a (patch)
tree4d23d8e886312c92a8796647118d48bf1075d5a2 /rest_framework/tests
parente80488b6192580c7a731114e58edd718d1c79120 (diff)
parent31893cff745b8cb62c3cc98b7103af2860eca319 (diff)
downloaddjango-rest-framework-6bbedfd7ae25655d94281764cb375fc7c2d0c13a.tar.bz2
fixed merge conflict
Diffstat (limited to 'rest_framework/tests')
-rw-r--r--rest_framework/tests/fields.py2
-rw-r--r--rest_framework/tests/views.py2
2 files changed, 1 insertions, 3 deletions
diff --git a/rest_framework/tests/fields.py b/rest_framework/tests/fields.py
index 3882b53f..13df769f 100644
--- a/rest_framework/tests/fields.py
+++ b/rest_framework/tests/fields.py
@@ -846,7 +846,7 @@ class HumanizedFieldType(TestCase):
"""
self.assertIsInstance(humanized, unicode)
- self.assertTrue(humanized)
+ self.assertNotEqual(humanized, '')
class HumanizedField(TestCase):
diff --git a/rest_framework/tests/views.py b/rest_framework/tests/views.py
index c0f42a06..2767d24c 100644
--- a/rest_framework/tests/views.py
+++ b/rest_framework/tests/views.py
@@ -11,7 +11,6 @@ from rest_framework.response import Response
from rest_framework.settings import api_settings
from rest_framework.views import APIView
-
factory = RequestFactory()
@@ -102,4 +101,3 @@ class FunctionBasedViewIntegrationTests(TestCase):
}
self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
self.assertEqual(sanitise_json_error(response.data), expected)
-