Beispiel #1
0
 def test_testnet_pay2sh(self):
     with pytest.raises(ValueError):
         get_version(BITCOIN_CASHADDRESS_TEST_PAY2SH)
Beispiel #2
0
 def test_testnet(self):
     assert get_version(BITCOIN_CASHADDRESS_TEST) == 'test'
     assert get_version(BITCOIN_CASHADDRESS_TEST_COMPRESSED) == 'test'
Beispiel #3
0
 def test_invalid(self):
     with pytest.raises(InvalidAddress):
         get_version('dg2dNAjuezub6iJVPNML5pW5ZQvtA9ocL')
Beispiel #4
0
 def test_mainnet(self):
     assert get_version(BITCOIN_CASHADDRESS) == 'main'
     assert get_version(BITCOIN_CASHADDRESS_COMPRESSED) == 'main'