diff --git a/intelmq/tests/bots/collectors/http/test_collector.py b/intelmq/tests/bots/collectors/http/test_collector.py index a4dba63ac..1f1fb9a66 100644 --- a/intelmq/tests/bots/collectors/http/test_collector.py +++ b/intelmq/tests/bots/collectors/http/test_collector.py @@ -250,7 +250,7 @@ def check_authorization_header(request): captured = mocker.register_uri('GET', self.sysconfig['http_url'], text='Foo Bar', additional_matcher=check_authorization_header) - log_line = "Either 'http_username' or 'http_password' are given, but for HTTP Authentication, both must be set\." + log_line = r"Either 'http_username' or 'http_password' are given, but for HTTP Authentication, both must be set\." self.run_bot(parameters={'http_username': 'username'}, allowed_warning_count=1) self.assertLogMatches(log_line, 'WARNING') self.run_bot(parameters={'http_password': 'password'}, allowed_warning_count=1)