diff options
| author | Craig Blaszczyk | 2015-01-08 17:16:47 +0000 | 
|---|---|---|
| committer | Craig Blaszczyk | 2015-01-08 17:16:47 +0000 | 
| commit | 7f8d314101c4e6e059b00ac12658f0e1055da8f7 (patch) | |
| tree | 7f4b3a202a78f96be4a5a42f1066e06d971e2ed4 /tests/test_fields.py | |
| parent | 1368c31a705a4892995f42cf5e0dcdcbfa13a1ce (diff) | |
| download | django-rest-framework-7f8d314101c4e6e059b00ac12658f0e1055da8f7.tar.bz2 | |
update tests to expect new error messages
Diffstat (limited to 'tests/test_fields.py')
| -rw-r--r-- | tests/test_fields.py | 18 | 
1 files changed, 9 insertions, 9 deletions
| diff --git a/tests/test_fields.py b/tests/test_fields.py index 5ecb9857..240827ee 100644 --- a/tests/test_fields.py +++ b/tests/test_fields.py @@ -338,7 +338,7 @@ class TestBooleanField(FieldValues):          False: False,      }      invalid_inputs = { -        'foo': ['`foo` is not a valid boolean.'], +        'foo': ['"foo" is not a valid boolean.'],          None: ['This field may not be null.']      }      outputs = { @@ -368,7 +368,7 @@ class TestNullBooleanField(FieldValues):          None: None      }      invalid_inputs = { -        'foo': ['`foo` is not a valid boolean.'], +        'foo': ['"foo" is not a valid boolean.'],      }      outputs = {          'true': True, @@ -832,7 +832,7 @@ class TestChoiceField(FieldValues):          'good': 'good',      }      invalid_inputs = { -        'amazing': ['`amazing` is not a valid choice.'] +        'amazing': ['"amazing" is not a valid choice.']      }      outputs = {          'good': 'good', @@ -872,8 +872,8 @@ class TestChoiceFieldWithType(FieldValues):          3: 3,      }      invalid_inputs = { -        5: ['`5` is not a valid choice.'], -        'abc': ['`abc` is not a valid choice.'] +        5: ['"5" is not a valid choice.'], +        'abc': ['"abc" is not a valid choice.']      }      outputs = {          '1': 1, @@ -899,7 +899,7 @@ class TestChoiceFieldWithListChoices(FieldValues):          'good': 'good',      }      invalid_inputs = { -        'awful': ['`awful` is not a valid choice.'] +        'awful': ['"awful" is not a valid choice.']      }      outputs = {          'good': 'good' @@ -917,8 +917,8 @@ class TestMultipleChoiceField(FieldValues):          ('aircon', 'manual'): set(['aircon', 'manual']),      }      invalid_inputs = { -        'abc': ['Expected a list of items but got type `str`.'], -        ('aircon', 'incorrect'): ['`incorrect` is not a valid choice.'] +        'abc': ['Expected a list of items but got type "str".'], +        ('aircon', 'incorrect'): ['"incorrect" is not a valid choice.']      }      outputs = [          (['aircon', 'manual'], set(['aircon', 'manual'])) @@ -1028,7 +1028,7 @@ class TestListField(FieldValues):          (['1', '2', '3'], [1, 2, 3])      ]      invalid_inputs = [ -        ('not a list', ['Expected a list of items but got type `str`.']), +        ('not a list', ['Expected a list of items but got type "str".']),          ([1, 2, 'error'], ['A valid integer is required.'])      ]      outputs = [ | 
