def test_get_from_email_domain(self): with self.options({"mail.from": "*****@*****.**"}): assert get_from_email_domain() == "example.com" with self.options({"mail.from": "root@localhost"}): assert get_from_email_domain() == "localhost" with self.options({"mail.from": "garbage"}): assert get_from_email_domain() == "garbage"
def test_get_from_email_domain(self): with self.options({'mail.from': '*****@*****.**'}): assert get_from_email_domain() == 'example.com' with self.options({'mail.from': 'root@localhost'}): assert get_from_email_domain() == 'localhost' with self.options({'mail.from': 'garbage'}): assert get_from_email_domain() == 'garbage'
def test_get_from_email_domain(self): with self.options({'mail.from': '*****@*****.**'}): assert get_from_email_domain() == 'example.com' with self.options({'mail.from': 'root@localhost'}): assert get_from_email_domain() == 'localhost' with self.options({'mail.from': 'garbage'}): assert get_from_email_domain() == 'garbage'