

@patch('hc.api.transports.requests.request')
def test_webhook_fires_on_up_event(self, mock_get):
    self._setup_data('webhook', 'http://foo\nhttp://bar', status='up')
    self.channel.notify(self.check)
    mock_get.assert_called_with('get', 'http://bar', headers={
        'User-Agent': 'healthchecks.io',
    }, timeout=5)

dataset/ETHPy150Open healthchecks/healthchecks/hc/api/tests/test_notify.py NotifyTestCase.test_webhook_fires_on_up_event/original