def test_unknown_network(self): with raises(PublicKey.UnknownNetwork): PublicKey(data['pubkey_pair'], network='a')
def test_invalid_pair(self): with raises(PublicKey.InvalidPair): PublicKey((0, 0))