def test_verify_web_hook_valid_request(self): main.verify_web_hook({'token': config['SLACK_TOKEN']})
def test_verify_web_hook_token_incorrect(self): with pytest.raises(ValueError): main.verify_web_hook({'token': 123})
def test_verify_web_hook_request_form_empty(self): with pytest.raises(ValueError): main.verify_web_hook({})