Пример #1
0
    def test_invalid_checksum(self):
        invalid_checksum_address = "cccqpa4urhgv3xx7kzlc2tnvs2r9q9ytpz9qgqqqqqq"

        with pytest.raises(ValueError) as e:
            PlatformAddress.from_string(invalid_checksum_address)
        assert "checksum" in str(e.value)
Пример #2
0
    def test_testnet(self):
        address = PlatformAddress.from_string(testnet_address)

        assert address.account_id == account_id