Created
November 1, 2020 11:22
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