def test_hook_endpoint_not_exists(): # same stubber setup # pass the reference to the eb client you create in the test session into the # function doing the work delete_endpoint.delete_endpoint(stubbed_eb_client, config_file)