aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_fields.py
diff options
context:
space:
mode:
authorTom Christie2014-12-15 12:04:46 +0000
committerTom Christie2014-12-15 12:04:46 +0000
commitaf53e34dd5873f3373e9991c3825e70d92432e14 (patch)
treef5503776ef204ff125f476116b11ca0801fd3b8e /tests/test_fields.py
parent1f6fd924fea05b9b7eb4bedf44dfdcb2f14c5cad (diff)
parentdc66cce16da6793efe4a4a4dcdd18db62c859abb (diff)
downloaddjango-rest-framework-af53e34dd5873f3373e9991c3825e70d92432e14.tar.bz2
Merge pull request #2279 from tomchristie/fix-serializer-repr-unicode-bug
Use unicode internally everywhere for 'repr'.
Diffstat (limited to 'tests/test_fields.py')
-rw-r--r--tests/test_fields.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_fields.py b/tests/test_fields.py
index 3f4e65f2..c20bdd8c 100644
--- a/tests/test_fields.py
+++ b/tests/test_fields.py
@@ -62,7 +62,7 @@ class TestEmpty:
"""
field = serializers.CharField(allow_blank=True)
output = field.run_validation('')
- assert output is ''
+ assert output == ''
def test_default(self):
"""
@@ -817,7 +817,7 @@ class TestChoiceField(FieldValues):
]
)
output = field.run_validation('')
- assert output is ''
+ assert output == ''
class TestChoiceFieldWithType(FieldValues):