Skip to content

Instantly share code, notes, and snippets.

@goujonbe
Created November 1, 2020 11:22
Show Gist options
  • Save goujonbe/22c7a66344ae91e9f7c7e89b7c3e1fa6 to your computer and use it in GitHub Desktop.
Save goujonbe/22c7a66344ae91e9f7c7e89b7c3e1fa6 to your computer and use it in GitHub Desktop.
@pytest.mark.parametrize(
"test_input, expected",
[
("correct@gmail.com", True),
("another.correct@custom.fr", True),
("and-another@custom.org", True),
("inavlid.com", False),
("veryb@d@.com", False),
("domain@too.long", False)
]
)
def test_is_valid_email_address(test_input, expected):
assert is_valid_email_address(test_input) == expected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment