def METHOD_NAME(self, mocker):
    """ Test formatting URLs. """
    self.input_message = None
    self.allowed_warning_count = 1  # message has empty raw
    url = 'http://localhost/%s.txt' % datetime.datetime.now().year
    mocker.get(url, text='')
    self.run_bot(parameters={'http_url': 'http://localhost/{time[%Y]}.txt',
                             'extract_files': None,
                             'name': 'Example feed',
                             'http_url_formatting': True,
                             },
                 iterations=1)
    self.assertLogMatches('Downloading report from %r.' % url,
                          'INFO')