Exemple #1
0
def then_the_created_user_has_the_following_parameters(step):
    userid = world.response.data['id']

    user = user_action_restapi.get_user(userid).data
    expected_user = _get_user_info(step.hashes)

    assert_that(user, has_entries(expected_user))
Exemple #2
0
def then_the_created_user_has_the_following_parameters(step):
    userid = world.response.data['id']

    user = user_action_restapi.get_user(userid).data
    expected_user = _get_user_info(step.hashes)

    assert_that(user, has_entries(expected_user))
Exemple #3
0
def then_the_user_with_id_group1_no_longer_exists(step, userid):
    response = user_action_restapi.get_user(userid)
    assert_that(response.status, equal_to(404))
Exemple #4
0
def when_i_ask_for_the_user_with_id_group1(step, userid):
    world.response = user_action_restapi.get_user(userid)
Exemple #5
0
def then_the_user_with_id_group1_no_longer_exists(step, userid):
    response = user_action_restapi.get_user(userid)
    assert_that(response.status, equal_to(404))
Exemple #6
0
def when_i_ask_for_the_user_with_id_group1(step, userid):
    world.response = user_action_restapi.get_user(userid)