Exemple #1
0
 def test_encode(self):
   # json deals with strings, not bytes.
   self.assertEqual(json_decode(json_encode(unicode_value)), unicode_value)
Exemple #2
0
 def test_encode(self):
   # json deals with strings, not bytes.
   self.assertEqual(json.json_decode(json.json_encode(constants.UNICODE_VALUE)), constants.UNICODE_VALUE)