def test_encodeDecodeZeroes(self): "Test encoding and decoding zeroes" original = '\0'*4 encoded = base58.encodeBase58(original) decoded = base58.decodeBase58(encoded) #print repr(original), repr(encoded), repr(decoded) self.assertEqual(original, decoded)
def test_encodeEmptyString(self): "Test encoding the empty string" self.assertEqual(base58.encodeBase58(""), "")