We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8325fc commit cc249efCopy full SHA for cc249ef
1 file changed
embedly/tests.py
@@ -1,5 +1,6 @@
1
from __future__ import unicode_literals
2
import unittest
3
+import json
4
5
from embedly.client import Embedly
6
from embedly.models import Url
@@ -72,6 +73,10 @@ def test_model(self):
72
73
self.assertTrue(obj.images[0].width is 275)
74
self.assertTrue(obj.images[0].nothing is None)
75
self.assertTrue(obj.object.type is None)
76
+ def test_model_data_can_serialize(self):
77
+ obj = Url({'a': {'key': 'value'}})
78
+ unserialzed = json.loads(json.dumps(obj.data))
79
+ self.assertDictEqual(obj.data, unserialzed)
80
81
def test_provider(self):
82
http = Embedly(self.key)
0 commit comments