Beispiel #1
0
 def test_json_serialization_loop(self):
     with self.assertRaises(TypeError):
         json.dumps(self.email)
     json_data = json.dumps(utils.serialize_email_message(self.email))
     email_bis = utils.deserialize_email_message(json.loads(json_data))
     self.assertEmailEqual(self.email, email_bis)
Beispiel #2
0
 def test_json_serialization_loop(self):
     with self.assertRaises(TypeError):
         json.dumps(self.email)
     json_data = json.dumps(utils.serialize_email_message(self.email))
     email_bis = utils.deserialize_email_message(json.loads(json_data))
     self.assertEmailEqual(self.email, email_bis)
Beispiel #3
0
 def test_serialization_loop(self):
     data = utils.serialize_email_message(self.email)
     email_bis = utils.deserialize_email_message(data)
     self.assertEmailEqual(self.email, email_bis)
Beispiel #4
0
 def test_serialization_loop(self):
     data = utils.serialize_email_message(self.email)
     email_bis = utils.deserialize_email_message(data)
     self.assertEmailEqual(self.email, email_bis)