Ejemplo n.º 1
0
 def test_decode_deep_keys_from_camelcase(self):
     encoder = JsonEncoder(None)
     result = encoder.decode('{"myAge":{"thisOneIsGood":true}}')
     assert 'my_age' in result
     assert 'this_one_is_good' in result['my_age']
Ejemplo n.º 2
0
 def test_decode_deep_keys_from_camelcase(self):
     encoder = JsonEncoder(None)
     result = encoder.decode('{"myAge":{"thisOneIsGood":true}}')
     assert 'my_age' in result
     assert 'this_one_is_good' in result['my_age']
Ejemplo n.º 3
0
 def test_decode_dict_keys_from_camelcase(self):
     encoder = JsonEncoder(None)
     result = encoder.decode('{"myAge": 25}')
     assert 'my_age' in result
Ejemplo n.º 4
0
 def test_decode_dict_keys_from_camelcase(self):
     encoder = JsonEncoder(None)
     result = encoder.decode('{"myAge": 25}')
     assert 'my_age' in result