'Verify the request to create a hook.'

def test_create_hook(self):

    data = {'name': 'web', 'config': {'url': 'http://example.com/webhook', 'content_type': 'json'}}
    self.instance.create_hook(**data)
    self.post_called_with(url_for('hooks'), data={'name': 'web', 'config': {'url': 'http://example.com/webhook', 'content_type': 'json'}, 'events': ['push'], 'active': True})
