Esempio n. 1
0
def test_validate_email():
    validate_email("google:[email protected]")
    with pytest.raises(SwaggerValidationError):
        validate_email("not-an-email!")
        validate_email("fake:[email protected]")
Esempio n. 2
0
def test_validate_email():
    validate_email("*****@*****.**")
    with pytest.raises(SwaggerValidationError):
        validate_email("not-an-email!")