def test_no_match(self):
     header_from = 'example.org'
     self.assertEquals('example.org', extract_email(header_from))
 def test_email_format_4(self):
     header_from = '<*****@*****.**>'
     self.assertEquals('*****@*****.**', extract_email(header_from))
 def test_email_format_6(self):
     header_from = '*****@*****.**'
     self.assertEquals('*****@*****.**', extract_email(header_from))
 def test_email_format_6(self):
     header_from = '*****@*****.**'
     self.assertEquals('*****@*****.**', extract_email(header_from))
 def test_no_match(self):
     header_from = 'example.org'
     self.assertEquals('example.org', extract_email(header_from))
 def test_email_format_4(self):
     header_from = '<*****@*****.**>'
     self.assertEquals('*****@*****.**', extract_email(header_from))
 def test_no_match(self):
     header_from = "example.org"
     self.assertEquals("example.org", extract_email(header_from))
 def test_email_format_5(self):
     header_from = "*****@*****.**"
     self.assertEquals("*****@*****.**", extract_email(header_from))
 def test_email_format_3(self):
     header_from = "Muster, Hans <*****@*****.**>"
     self.assertEquals("*****@*****.**", extract_email(header_from))
Exemplo n.º 10
0
 def test_email_format_2(self):
     header_from = '"Hans Muster" <*****@*****.**>'
     self.assertEquals("*****@*****.**", extract_email(header_from))