def test_create_hook(self):
        self.token_login()
        cassette_name = self.cassette_name('create_hook')
        with self.recorder.use_cassette(cassette_name):
            repository = self.gh.repository('itsmemattchung', 'github3.py')
            data = {
                'name': 'web',
                'config': {
                    'url': 'http://example.com/webhook',
                    'content_type': 'json'
                }
            }
            hook = repository.create_hook(**data)
            assert isinstance(hook, github3.repos.hook.Hook)
Test the ability to create a hook for a repository.
dataset/ETHPy150Open sigmavirus24/github3.py/tests/integration/test_repos_repo.py/TestRepository.test_create_hook