def test_get_email_addrs_with_cc_bcc(self): self.assertTupleEqual( ([], ["*****@*****.**"], []), sendh._get_email_addresses(None, None, cc="*****@*****.**")) self.assertTupleEqual( ([], ["*****@*****.**"], []), sendh._get_email_addresses(None, None, cc=["*****@*****.**"])) self.assertTupleEqual( ([], ["*****@*****.**"], ["*****@*****.**"]), sendh._get_email_addresses(None, None, cc=["*****@*****.**"], bcc=["*****@*****.**"])) self.assertTupleEqual( ([], ["*****@*****.**", "*****@*****.**" ], ["*****@*****.**", "*****@*****.**"]), sendh._get_email_addresses(None, None, cc=["*****@*****.**"], bcc=["*****@*****.**"], g_cc="*****@*****.**", g_bcc=["*****@*****.**"])) self.assertTupleEqual( ([], ["*****@*****.**", "*****@*****.**" ], ["*****@*****.**", "*****@*****.**"]), sendh._get_email_addresses(None, None, cc=["*****@*****.**"], bcc=["*****@*****.**"], g_cc=["*****@*****.**"], g_bcc=["*****@*****.**"]))
def test_get_email_addresses_both(self): self.assertTupleEqual( (["*****@*****.**", "*****@*****.**"], [], []), sendh._get_email_addresses("*****@*****.**", "*****@*****.**")) self.assertTupleEqual( (["*****@*****.**", "*****@*****.**"], [], []), sendh._get_email_addresses(["*****@*****.**"], ["*****@*****.**"]))
def test_get_email_addresses_both(self): self.assertListEqual( ["*****@*****.**", "*****@*****.**"], sendh._get_email_addresses( "*****@*****.**", "*****@*****.**")) self.assertListEqual( ["*****@*****.**", "*****@*****.**"], sendh._get_email_addresses( ["*****@*****.**"], ["*****@*****.**"]))
def test_get_email_addresses_only_report(self): self.assertTupleEqual( (["*****@*****.**"], [], []), sendh._get_email_addresses("*****@*****.**", None)) self.assertTupleEqual((["*****@*****.**"], [], []), sendh._get_email_addresses(["*****@*****.**"], None)) self.assertTupleEqual( (["*****@*****.**"], [], []), sendh._get_email_addresses("*****@*****.**", "")) self.assertTupleEqual((["*****@*****.**"], [], []), sendh._get_email_addresses(["*****@*****.**"], "")) self.assertTupleEqual( (["*****@*****.**"], [], []), sendh._get_email_addresses("*****@*****.**", [])) self.assertTupleEqual((["*****@*****.**"], [], []), sendh._get_email_addresses(["*****@*****.**"], []))
def test_get_email_addresses_only_report(self): self.assertListEqual( ["*****@*****.**"], sendh._get_email_addresses("*****@*****.**", None)) self.assertListEqual( ["*****@*****.**"], sendh._get_email_addresses(["*****@*****.**"], None)) self.assertListEqual( ["*****@*****.**"], sendh._get_email_addresses("*****@*****.**", "")) self.assertListEqual( ["*****@*****.**"], sendh._get_email_addresses(["*****@*****.**"], "")) self.assertListEqual( ["*****@*****.**"], sendh._get_email_addresses("*****@*****.**", [])) self.assertListEqual( ["*****@*****.**"], sendh._get_email_addresses(["*****@*****.**"], []))
def test_get_email_addresses_no_addresses(self): self.assertTupleEqual(([], [], []), sendh._get_email_addresses(None, None)) self.assertTupleEqual(([], [], []), sendh._get_email_addresses('', '')) self.assertTupleEqual(([], [], []), sendh._get_email_addresses([], []))
def test_get_email_addresses_no_addresses(self): self.assertListEqual([], sendh._get_email_addresses(None, None)) self.assertListEqual([], sendh._get_email_addresses('', '')) self.assertListEqual([], sendh._get_email_addresses([], []))