Exemplo n.º 1
0
 def test_from_invalid_bytes(self):
     with raises(Address.InvalidBinaryLength):
         Address.from_bytes('a')
Exemplo n.º 2
0
 def test_from_invalid_bytes(self):
     with raises(Address.InvalidBinaryLength):
         Address.from_bytes('a')
Exemplo n.º 3
0
 def test_invalid_version(self):
     with raises(Address.InvalidVersion):
         Address.from_bytes(chr(15) + 'a' * 20)
Exemplo n.º 4
0
 def test_invalid_version(self):
     with raises(Address.InvalidVersion):
         Address.from_bytes(b'\x0f' + b'a' * 20)