def test_invalid_email(self, email): with pytest.raises(ValidationError): validate_email(email)
def test_valid_email(self, email): validate_email(email)