'Test the ability to edit a hook on a repository.'

def test_edit(self):

    self.token_login()
    cassette_name = self.cassette_name('edit')
    with self.recorder.use_cassette(cassette_name):
        repository = self.gh.repository('github3py', 'delete_contents')
        hook = repository.hook(7112180)
        data = {'config': {'url': 'https://requestb.in/15u72q01', 'content_type': 'json'}, 'events': ['pull_request']}
        edited = hook.edit(**data)
    assert edited
