def test_email_validation_with_invalid_email_addresses(email_address): with pytest.raises(ValidationError): email_validator(email_address)
def test_email_validation_with_valid_email_addresses(email_address): email_validator(email_address)
def test_email_validation_with_invalid_email_addresses(email_address): from django.core.exceptions import ValidationError with pytest.raises(ValidationError): email_validator(email_address)