thunderbird_accounts.mail.tests.test_clients

Classes

TestMailClientVerifyDomain([methodName])

class thunderbird_accounts.mail.tests.test_clients.TestMailClientVerifyDomain(methodName='runTest')[source]

Bases: SimpleTestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_verify_domain_success(mock_get_dns_records, mock_resolve)

Test successful verification of MX, SPF, and DKIM records.

test_verify_domain_mx_failure(mock_resolve)

Test verification fails when MX record is missing or incorrect.

test_verify_domain_spf_failure(mock_resolve)

Test verification warns when SPF record is missing or incorrect.

test_verify_domain_dkim_failure(mock_get_dns_records, mock_resolve)

Test verification warns when DKIM record is incorrect.

test_verify_domain_dkim_missing_in_stalwart(mock_get_dns_records, mock_resolve)

Test verification when Stalwart doesn’t return expected DKIM record.