diff options
| author | Tom Christie | 2014-09-12 09:49:35 +0100 | 
|---|---|---|
| committer | Tom Christie | 2014-09-12 09:49:35 +0100 | 
| commit | 0d354e8f92c7daaf8dac3b80f0fd64f983f21e0b (patch) | |
| tree | a691c06620fe2f49a73904c8fbe80f7a96472249 /tests/test_validation.py | |
| parent | adcb64ab4198f35c61d5be68956d201685ed3538 (diff) | |
| download | django-rest-framework-0d354e8f92c7daaf8dac3b80f0fd64f983f21e0b.tar.bz2 | |
to_internal_value() and to_representation()
Diffstat (limited to 'tests/test_validation.py')
| -rw-r--r-- | tests/test_validation.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/tests/test_validation.py b/tests/test_validation.py index c4506e7e..7543d849 100644 --- a/tests/test_validation.py +++ b/tests/test_validation.py @@ -158,7 +158,7 @@ class TestChoiceFieldChoicesValidate(TestCase):          f = serializers.ChoiceField(choices=self.CHOICES)          value = self.CHOICES[0][0]          try: -            f.to_native(value) +            f.to_internal_value(value)          except ValidationError:              self.fail("Value %s does not validate" % str(value)) | 
