def METHOD_NAME(context):
    email = configs.get('email')
    password = configs.get('password')
    response = authenticate(email, password)
    assert_that(response, has_key('token'), 'Authentication token not found in login response!')
    context.token = response['token']