Created
November 1, 2020 11:22
-
-
Save goujonbe/22c7a66344ae91e9f7c7e89b7c3e1fa6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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