@@ -260,7 +260,8 @@ def resolve_return_value(domain, record_type, **kwargs):
260
260
261
261
262
262
assert sorted_calls [0 ] == call (
263
- smtp_host = "1.1.0.9" ,
263
+ smtp_host = "mx1.example.com" ,
264
+ smtp_ip = "1.1.0.9" ,
264
265
smtp_port = 25 ,
265
266
envelope_from = draft_message .sender .email ,
266
267
@@ -274,7 +275,8 @@ def resolve_return_value(domain, record_type, **kwargs):
274
275
275
276
# Check second call - [email protected] , [email protected] retry to mx2.example.com
276
277
assert sorted_calls [1 ] == call (
277
- smtp_host = "1.2.0.9" ,
278
+ smtp_host = "mx2.example.com" ,
279
+ smtp_ip = "1.2.0.9" ,
278
280
smtp_port = 25 ,
279
281
envelope_from = draft_message .sender .email ,
280
282
@@ -288,7 +290,8 @@ def resolve_return_value(domain, record_type, **kwargs):
288
290
289
291
# Check third call - [email protected] to mx1.example2.com
290
292
assert sorted_calls [2 ] == call (
291
- smtp_host = "2.1.0.9" ,
293
+ smtp_host = "mx1.example2.com" ,
294
+ smtp_ip = "2.1.0.9" ,
292
295
smtp_port = 25 ,
293
296
envelope_from = draft_message .sender .email ,
294
297
recipient_emails = {
"[email protected] " },
@@ -333,7 +336,8 @@ def smtp_return_value(*args, **kwargs):
333
336
outbound .send_message (draft_message )
334
337
335
338
mock_smtp_send .assert_called_once_with (
336
- smtp_host = "1.2.0.8" ,
339
+ smtp_host = "example2.com" ,
340
+ smtp_ip = "1.2.0.8" ,
337
341
smtp_port = 25 ,
338
342
envelope_from = draft_message .sender .email ,
339
343
recipient_emails = {
"[email protected] " },
0 commit comments