We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e8fedb3 + 2511168 commit 3593925Copy full SHA for 3593925
embedly/tests.py
@@ -61,7 +61,13 @@ def test_model(self):
61
self.assertEqual(obj['new_key'], 'dict value')
62
63
def test_model_data_can_serialize(self):
64
- obj = Url({'a': {'key': 'value'}})
+ obj = Url({'hash': {'key': 'value'},
65
+ 'none': None,
66
+ 'empty': '',
67
+ 'float': 1.234,
68
+ 'int': 1,
69
+ 'string': 'string',
70
+ 'array': [0, -1]})
71
unserialzed = json.loads(json.dumps(obj.data))
72
self.assertDictEqual(obj.data, unserialzed)
73
0 commit comments