Exemple #1
0
def test_invalid_emails(raw):
    """Returns None for unparseable emails."""
    assert formats.normalize_email(raw) is None
Exemple #2
0
def test_valid_emails(raw, output):
    """Returns valid phone numbers with domain part lower-cased."""
    assert formats.normalize_email(raw) == output
def test_invalid_emails(raw):
    """Returns None for unparseable emails."""
    assert formats.normalize_email(raw) is None
def test_valid_emails(raw, output):
    """Returns valid phone numbers with domain part lower-cased."""
    assert formats.normalize_email(raw) == output
Exemple #5
0
 def clean_email(self):
     return formats.normalize_email(self.cleaned_data["email"])
Exemple #6
0
 def clean_email(self):
     return formats.normalize_email(self.cleaned_data["email"])