Skip to content

Commit

Permalink
Fixed python 2.6 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
delinhabit committed Jul 25, 2015
1 parent bf25a6e commit 085c3e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_serializer_nested.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def test_null_is_not_allowed_if_allow_null_is_not_set(self):
serializer = self.get_serializer(input_data)

assert not serializer.is_valid()
assert set(serializer.errors) == {'nested'}
assert set(serializer.errors) == set(['nested'])
assert serializer.errors['nested'][0] == serializer.error_messages['null']

def test_run_the_field_validation_even_if_the_field_is_null(self):
Expand All @@ -132,7 +132,7 @@ def test_run_the_field_validation_even_if_the_field_is_null(self):
serializer = self.get_serializer(input_data, condition_to_allow_null=False)

assert not serializer.is_valid()
assert set(serializer.errors) == {'payment_info'}
assert set(serializer.errors) == set(['payment_info'])
assert serializer.errors['payment_info'][0] == serializer.ERROR_MESSAGE

def test_expected_results_if_not_null(self):
Expand Down

0 comments on commit 085c3e8

Please sign in to comment.