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)