Skip to content

Commit

Permalink
Add remaining test for email utils
Browse files Browse the repository at this point in the history
  • Loading branch information
frcroth committed Oct 15, 2023
1 parent 53b076f commit d774ab9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions myhpi/tests/core/test_email_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,12 @@ def test_toggle_institution(self):
toggled = list(toggle_institution(email))
if not "unrelated" in email:
self.assertEqual(toggled[0], expected_email)

def test_alternative_emails(self):
email = "[email protected]"
alternatives = [
"[email protected]",
"[email protected]",
"[email protected]",
]
self.assertSetEqual(set(alternative_emails(email)), set(alternatives))

0 comments on commit d774ab9

Please sign in to comment.