'Test the ability to create a hook for a repository.'

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)
