def test_can_get_email_to_with_team(self): expected_emails = [self.team.email, self.email_adm.value] self.assertEqual(expected_emails, email_to(team=self.team))
def test_can_get_email_to_with_team_without_email(self): self.team.email = '' self.assertEqual(self.email_adm.value, email_to(self.team))
def test_can_get_email_to(self): self.assertEqual(self.email_adm.value, email_to(team=None))