Exemple #1
0
	def test_from_json(self):
		self.assertEqual(from_json(self.string_json_obj), self.obj)
		self.assertEquals(from_json(to_json(self.obj)), self.obj)
Exemple #2
0
	def test_to_json(self):
		self.assertEquals(to_json(self.obj), self.string_json_obj)
		self.assertEquals(to_json(self.obj1), self.string_json_obj1)