Example #1
0
def test_username_can_contain_letters_and_digits():
    assert validate_email("*****@*****.**") is None
Example #2
0
def test_extension_invalid_chars_raise_exception():
    with pytest.raises(ValueError):
        validate_email("*****@*****.**")
Example #3
0
def test_username_can_only_contain_letters():
    assert validate_email("*****@*****.**") is None
Example #4
0
def test_website_invalid_chars_raise_exception():
    with pytest.raises(ValueError):
        validate_email("abc@website!123.com")
Example #5
0
def test_extension_should_contain_only_three_chars():
    assert validate_email("*****@*****.**") is None
Example #6
0
def test_website_contain_only_letters_and_digits():
    assert validate_email("*****@*****.**") is None
Example #7
0
def test_username_is_invalid_raise_exception():
    with pytest.raises(ValueError):
        validate_email("*****@*****.**")
Example #8
0
def test_username_when_dont_start_with_letter_raise_exception():
    with pytest.raises(ValueError):
        validate_email("*****@*****.**")
Example #9
0
def test_username_should_starts_with_letter():
    assert validate_email("*****@*****.**") is None
Example #10
0
def test_username_can_contain_letters_digits_dashes_and_underscores():
    assert validate_email("*****@*****.**") is None