Example #1
0
def setup():
    commontest.setup_test_env()
    token = userlib.login(test_data.member['username'], test_data.member['password'])
    userlib.set_context(token)
    env.context.pgcursor.connection.commit()
Example #2
0
def test_login():
    assert bool(userlib.login(test_data.member['username'], test_data.member['password'])) == True