'Verify the request for editing a hook on a repository.'

def test_edit(self):

    config = {'url': 'https://fake-url.com', 'content_type': 'json'}
    self.instance.edit(config=config, events=['push'], add_events=['pull'], rm_events=['release'])
    data = {'config': config, 'events': ['push'], 'add_events': ['pull'], 'remove_events': ['release'], 'active': True}
    self.patch_called_with(hook_url_for(), data=data)
