aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTom Christie2015-02-06 14:43:43 +0000
committerTom Christie2015-02-06 14:43:43 +0000
commitdec3493d7c3ea630a4d51b21bb7e793f0e97ae99 (patch)
tree221be2581fa48731058ea4f603296ab7565b3150 /tests
parenta435b1b3553975a280ec33d709a6aeee1ee415e8 (diff)
downloaddjango-rest-framework-dec3493d7c3ea630a4d51b21bb7e793f0e97ae99.tar.bz2
Minor cleanup
Diffstat (limited to 'tests')
-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 5a5418e6..ab3418bd 100644
--- a/tests/test_fields.py
+++ b/tests/test_fields.py
@@ -412,11 +412,11 @@ class TestCharField(FieldValues):
def test_trim_whitespace_default(self):
field = serializers.CharField()
- assert field.to_representation(' abc ') == 'abc'
+ assert field.to_internal_value(' abc ') == 'abc'
def test_trim_whitespace_disabled(self):
field = serializers.CharField(trim_whitespace=False)
- assert field.to_representation(' abc ') == ' abc '
+ assert field.to_internal_value(' abc ') == ' abc '
class TestEmailField(FieldValues):