'Test that we check the validity of a hook.'

def test_create_hook_requires_valid_name_and_config(self):

    self.instance.create_hook(name='name', config='')
    assert (self.session.post.called is False)
