Skip to content

Commit 3593925

Browse files
committed
Merge pull request #18 from se3000/master
additional serialization tests (a part of this initial PR was reverted; now it's just more test data)
2 parents e8fedb3 + 2511168 commit 3593925

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

embedly/tests.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,13 @@ def test_model(self):
6161
self.assertEqual(obj['new_key'], 'dict value')
6262

6363
def test_model_data_can_serialize(self):
64-
obj = Url({'a': {'key': 'value'}})
64+
obj = Url({'hash': {'key': 'value'},
65+
'none': None,
66+
'empty': '',
67+
'float': 1.234,
68+
'int': 1,
69+
'string': 'string',
70+
'array': [0, -1]})
6571
unserialzed = json.loads(json.dumps(obj.data))
6672
self.assertDictEqual(obj.data, unserialzed)
6773

0 commit comments

Comments
 (0)