def test_37_email_to_alias(self): """Try to extract alias from 'a-eta-b.com'.""" self.assertEqual(formatting.email_to_alias('a-eta-b.com'), '')
def test_36_email_to_alias(self): """Try to extract alias from ''.""" self.assertEqual(formatting.email_to_alias(''), '')
def test_34_email_to_alias(self): r"""Extract alias from '\"John Doe\"*****@*****.**'.""" self.assertEqual(formatting.email_to_alias('"John Doe" <*****@*****.**>'), 'a')
def test_35_email_to_alias(self): """Extract alias from '*****@*****.**'.""" self.assertEqual(formatting.email_to_alias('*****@*****.**'), 'a')
def test_33_email_to_alias(self): """Extract alias from 'John Doe <*****@*****.**>' .""" self.assertEqual(formatting.email_to_alias('John Doe <*****@*****.**>'), 'a')