def test_ed25519py():
    kp0 = ed25519py.crypto_sign_keypair(binary(' '*32))
    kp = ed25519py.crypto_sign_keypair()
        
    signed = ed25519py.crypto_sign(binary('test'), kp.sk)
    
    ed25519py.crypto_sign_open(signed, kp.vk)
    
    try:
        ed25519py.crypto_sign_open(signed, kp0.vk)
    except ValueError:
        pass
    else:
        raise Exception("Expected ValueError")
    
    try:
        ed25519py.crypto_sign_keypair(binary(' '*33))
    except ValueError:
        pass
    else:
        raise Exception("Expected ValueError")
    
    try:
        ed25519py.crypto_sign(binary(''), binary(' ')*31)
    except __HOLE__:
        pass
    else:
        raise Exception("Expected ValueError")
    
    try:
        ed25519py.crypto_sign_open(binary(''), binary(' ')*31)
    except ValueError:
        pass
    else:
        raise Exception("Expected ValueError")
dataset/ETHPy150Open chalasr/Flask-P2P/venv/lib/python2.7/site-packages/wheel/test/test_signatures.py/test_ed25519py