aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/tests/fields.py
diff options
context:
space:
mode:
authorNikolaus Schlemm2013-05-19 15:12:01 +0200
committerNikolaus Schlemm2013-05-19 15:12:01 +0200
commit31893cff745b8cb62c3cc98b7103af2860eca319 (patch)
tree8aa4f4b2af09f7d471a3b65fb49bf2a89da1431f /rest_framework/tests/fields.py
parent88c94f372049058a7a982745e8b772bd057abe99 (diff)
downloaddjango-rest-framework-31893cff745b8cb62c3cc98b7103af2860eca319.tar.bz2
* make test assertion more explicit
* cleanup
Diffstat (limited to 'rest_framework/tests/fields.py')
-rw-r--r--rest_framework/tests/fields.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/tests/fields.py b/rest_framework/tests/fields.py
index 6bc37db2..d0b35241 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):