Example #1
0
 def test_encoding_and_decoding(self):
   self.assertEqual(codec.base85_encode(BASE85_RAW), BASE85_ENCODED)
   self.assertEqual(codec.base85_decode(BASE85_ENCODED), BASE85_RAW)
Example #2
0
 def test_encoding_and_decoding(self):
   self.assertEqual(base85_encode(base85_raw), base85_encoded)
   self.assertEqual(base85_decode(base85_encoded), base85_raw)
Example #3
0
 def test_codec_identity(self):
   self.assertEqual(codec.base85_decode(codec.base85_encode(BASE85_RAW)), BASE85_RAW)
Example #4
0
 def test_codec_identity(self):
   self.assertEqual(base85_decode(base85_encode(base85_raw)), base85_raw)