예제 #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]")
예제 #2
0
def test_validate_email():
    validate_email("*****@*****.**")
    with pytest.raises(SwaggerValidationError):
        validate_email("not-an-email!")