add no header test for serialize set
@@ -78,6 +78,11 @@ class JSONDictFieldTestCase(unittest2.TestCase):
result = field.to_mongo({"test": {1, 2}})
self.assertTrue(isinstance(result, bytes))
+ def test_header_set_to_mongo(self):
+ field = JSONDictField(use_header=True)
+ result = field.to_mongo({"test": {1, 2}})
+ self.assertTrue(isinstance(result, bytes))
+
def test_to_mongo(self):
field = JSONDictField(use_header=False)
result = field.to_mongo(MOCK_DATA_DICT)
