Skip to content

Commit 3a68dda

Browse files
committed
test for certtools#2546
1 parent adb2d15 commit 3a68dda

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

intelmq/tests/bots/outputs/templated_smtp/test_output.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def set_bot(cls):
6767
"attachments": yaml.load(attachments),
6868
"smtp_host": "localhost",
6969
"body": "URL: {{ event['source.url'] }}",
70-
"subject": "{{ event['malware.name'] }} on {{ event['destination.fqdn'] }}",
70+
"subject": "{{ event['malware.name'] }} on \u00e0 {{ event['destination.fqdn'] }}",
7171
"mail_from": "myself",
7272
"mail_to": "you,yourself"
7373
}
@@ -96,7 +96,7 @@ def test_event(self):
9696
unittest.mock.patch('smtplib.SMTP.close'):
9797
self.run_bot()
9898

99-
self.assertEqual(SENT_MESSAGE[0]["Subject"], "test-malware on destination.example.com")
99+
self.assertEqual(SENT_MESSAGE[0]["Subject"], "test-malware on \u00e0 destination.example.com")
100100
self.assertEqual(SENT_MESSAGE[0]["From"], "myself")
101101
self.assertEqual(SENT_MESSAGE[0]["To"], "you, yourself")
102102
self.assertEqual(SENT_MESSAGE[0].get_payload()[0].get_payload(), "URL: http://example.com/\n")
@@ -124,7 +124,7 @@ def test_multiple_recipients_event(self):
124124
unittest.mock.patch("smtplib.SMTP.close"):
125125
self.run_bot(parameters={"mail_to": "{{ event['source.abuse_contact'] }}"})
126126

127-
self.assertEqual(SENT_MESSAGE[0]["Subject"], "test-malware on destination.example.com")
127+
self.assertEqual(SENT_MESSAGE[0]["Subject"], "test-malware on \u00e0 destination.example.com")
128128
self.assertEqual(SENT_MESSAGE[0]["From"], "myself")
129129
self.assertEqual(SENT_MESSAGE[0]["To"], ", ".join(EVENT1["source.abuse_contact"].split(",")))
130130
self.assertEqual({"from_addr": "myself", "to_addrs": ["[email protected]", "[email protected]"]},

0 commit comments

Comments
 (0)