Beispiel #1
0
 def test_32_email_to_domain(self):
     """Try to extract domain from 'a-eta-b.com'."""
     self.assertEqual(formatting.email_to_domain('a-eta-b.com'), '')
Beispiel #2
0
 def test_31_email_to_domain(self):
     """Try to extract domain from ''."""
     self.assertEqual(formatting.email_to_domain(''), '')
Beispiel #3
0
 def test_29_email_to_domain(self):
     r"""Extract domain from '\"John Doe\"*****@*****.**'."""
     self.assertEqual(formatting.email_to_domain('"John Doe" [email protected]'),
                      'b.com')
Beispiel #4
0
 def test_30_email_to_domain(self):
     """Extract domain from '*****@*****.**'."""
     self.assertEqual(formatting.email_to_domain('*****@*****.**'), 'b.com')
Beispiel #5
0
 def test_28_email_to_domain(self):
     """Extract domain from 'John Doe <*****@*****.**>' ."""
     self.assertEqual(formatting.email_to_domain('John Doe <*****@*****.**>'),
                      'b.com')