def testPasswordEncrypts():
    password = '******'
    hashed = crypto.hashPassword(password)

    print hashed
    assert hashed != password
def testPasswordRecoverable():
    password = '******'
    hashed = crypto.hashPassword(password)

    assert crypto.checkPassword(password, hashed)