def register_hook_list(self, body=None, status=200):
        if body is None:
            body = json.dumps(
                [{
                    'url': '{url}repos/{org}/{repo}/hooks/1'.format(
                        url=self.URL, org=self.ORG, repo=self.TEST_REPO
                    )
                }]
            )
        test_url = '{url}repos/{org}/{repo}/hooks'.format(
            url=self.URL,
            org=self.ORG,
            repo=self.TEST_REPO
        )
        # Register for hook endpoint
        httpretty.register_uri(
            httpretty.GET,
            test_url,
            body=body,
            status=status
        )
Simple hook list URL.
dataset/ETHPy150Open mitodl/orcoursetrion/orcoursetrion/tests/base.py/TestGithubBase.register_hook_list