def test_from_invalid_bytes(self): with raises(Address.InvalidBinaryLength): Address.from_bytes('a')
def test_from_invalid_bytes(self): with raises(Address.InvalidBinaryLength): Address.from_bytes('a')
def test_invalid_version(self): with raises(Address.InvalidVersion): Address.from_bytes(chr(15) + 'a' * 20)
def test_invalid_version(self): with raises(Address.InvalidVersion): Address.from_bytes(b'\x0f' + b'a' * 20)