def check(path, repo, action): request = setup_request(path) assert main.get_repo_and_action(request) == (repo, action)