(self)
| 26 | |
| 27 | class Test_base58(unittest.TestCase): |
| 28 | def test_encode_decode(self): |
| 29 | for exp_bin, exp_base58 in load_test_vectors('base58_encode_decode.json'): |
| 30 | exp_bin = unhexlify(exp_bin.encode('utf8')) |
| 31 | |
| 32 | act_base58 = encode(exp_bin) |
| 33 | act_bin = decode(exp_base58) |
| 34 | |
| 35 | self.assertEqual(act_base58, exp_base58) |
| 36 | self.assertEqual(act_bin, exp_bin) |
| 37 | |
| 38 | class Test_CBase58Data(unittest.TestCase): |
| 39 | def test_from_data(self): |
nothing calls this directly
no test coverage detected