A working subset of #1788 #1875

Merged
g1itch merged 5 commits from compat-short into v0.6 2021-11-11 15:12:34 +01:00
Showing only changes of commit 93c7cfbf63 - Show all commits

View File

@ -46,11 +46,15 @@ class TestAddresses(unittest.TestCase):
def test_base58(self):
"""Check Base58 encoding and decoding"""
self.assertEqual(addresses.decodeBase58('1'), 0)
self.assertEqual(addresses.decodeBase58('!'), 0)
self.assertEqual(
addresses.decodeBase58(sample_addr4), sample_daddr4_512)
self.assertEqual(
addresses.decodeBase58(sample_addr3), sample_daddr3_512)
self.assertEqual(addresses.encodeBase58(0), '1')
self.assertEqual(addresses.encodeBase58(-1), None)
self.assertEqual(
sample_addr4, addresses.encodeBase58(sample_daddr4_512))
self.assertEqual(