def test_encoding_and_decoding(self): self.assertEqual(codec.base85_encode(BASE85_RAW), BASE85_ENCODED) self.assertEqual(codec.base85_decode(BASE85_ENCODED), BASE85_RAW)
def test_encoding_and_decoding(self): self.assertEqual(base85_encode(base85_raw), base85_encoded) self.assertEqual(base85_decode(base85_encoded), base85_raw)
def test_codec_identity(self): self.assertEqual(codec.base85_decode(codec.base85_encode(BASE85_RAW)), BASE85_RAW)
def test_codec_identity(self): self.assertEqual(base85_decode(base85_encode(base85_raw)), base85_raw)