예제 #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()
예제 #2
0
def test_login():
    assert bool(userlib.login(test_data.member['username'], test_data.member['password'])) == True