Skip to content

Instantly share code, notes, and snippets.

@goujonbe
Created November 1, 2020 11:22
Show Gist options
  • Select an option

  • Save goujonbe/22c7a66344ae91e9f7c7e89b7c3e1fa6 to your computer and use it in GitHub Desktop.

Select an option

Save goujonbe/22c7a66344ae91e9f7c7e89b7c3e1fa6 to your computer and use it in GitHub Desktop.
@pytest.mark.parametrize(
"test_input, expected",
[
("[email protected]", True),
("[email protected]", True),
("[email protected]", True),
("inavlid.com", False),
("veryb@[email protected]", False),
("[email protected]", 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