Skip to content

Commit

Permalink
fixed test case for python3
Browse files Browse the repository at this point in the history
  • Loading branch information
Mogball committed Sep 22, 2017
1 parent 977680b commit b264960
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/utils_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ def test_json_encoded_obj(self):
obj = {'a': 5, 'b': ['a', 'g', 5]}
val = '{"a": 5, "b": ["a", "g", 5]}'
jsonObj = JSONEncodedDict()
self.assertEquals(jsonObj.process_bind_param(obj, 'dialect'), val)
resp = jsonObj.process_bind_param(obj, 'dialect')
self.assertIn('"a": 5', resp)
self.assertIn('"b": ["a", "g", 5]', resp)
self.assertEquals(jsonObj.process_result_value(val, 'dialect'), obj)

def test_validate_json(self):
Expand Down

0 comments on commit b264960

Please sign in to comment.