def test_json(self):
     data = '{"key": "value"}'
     expected = {'key': 'value'}
     self.assertEqual(_json_deserializer(data), expected)
示例#2
0
 def test_json(self):
     data = '{"key": "value"}'
     expected = {'key': 'value'}
     self.assertEqual(_json_deserializer(data), expected)
 def test_list(self):
     data = '[1, 2, 3]'
     expected = [1, 2, 3]
     self.assertEqual(_json_deserializer(data), expected)
示例#4
0
 def test_list(self):
     data = '[1, 2, 3]'
     expected = [1, 2, 3]
     self.assertEqual(_json_deserializer(data), expected)