

@patch('hc.api.transports.requests.request')
def test_webhooks_dollarsign_escaping(self, mock_get):
    template = 'http://host/$NAME'
    self._setup_data('webhook', template)
    mock_get.check.name = '$TAG1'
    self.check.tags = 'foo'
    self.check.save()
    self.channel.notify(self.check)
    url = 'http://host/%24TAG1'
    mock_get.assert_called_with('get', url, headers={
        'User-Agent': 'healthchecks.io',
    }, timeout=5)

dataset/ETHPy150Open healthchecks/healthchecks/hc/api/tests/test_notify.py NotifyTestCase.test_webhooks_dollarsign_escaping/VarMisuse@31/61 `self`->`mock_get`