Exemplo n.º 1
0
 def test_get_auto_submitted(self):
     mail_buit = llegir_mail("mailbuit.txt")
     mail_auto = llegir_mail("mailauto.txt")
     self.assertTrue(mail_auto.es_missatge_automatic())
     self.assertFalse(mail_buit.es_missatge_automatic())
Exemplo n.º 2
0
 def test_encoding_xungo(self):
     mail = llegir_mail("encoding-xungo.txt")
     body = mail.get_body()
     self.assertNotEquals("", body)
Exemplo n.º 3
0
 def test_get_body_buit(self):
     mail_buit = llegir_mail("mailbuit.txt")
     body = mail_buit.get_body()
     self.assertEquals("", body)
Exemplo n.º 4
0
 def test_get_body_buit(self):
     mail_buit = llegir_mail("mailbuit.txt")
     body = mail_buit.get_body()
     self.assertEquals("", body)
Exemplo n.º 5
0
 def test_get_auto_submitted(self):
     mail_buit = llegir_mail("mailbuit.txt")
     mail_auto = llegir_mail("mailauto.txt")
     self.assertTrue(mail_auto.es_missatge_automatic())
     self.assertFalse(mail_buit.es_missatge_automatic())
Exemplo n.º 6
0
 def test_treure_style(self):
     msg = llegir_mail("reply-mutipart-alternative.txt")
     html = msg.get_body()
     net = netejahtml.neteja_reply(html)
     self.assertFalse("text-decoration" in net)
Exemplo n.º 7
0
 def test_encoding_xungo(self):
     mail = llegir_mail("encoding-xungo.txt")
     body = mail.get_body()
     self.assertNotEquals("", body)
Exemplo n.º 8
0
 def test_treure_comentaris(self):
     msg = llegir_mail("comentaris.txt")
     html = msg.get_body()
     net = netejahtml.neteja_nou(html)
     print net
     self.assertFalse("supportList" in net)
Exemplo n.º 9
0
 def test_treure_script(self):
     msg = llegir_mail("reply-mutipart-alternative.txt")
     html = msg.get_body()
     net = netejahtml.neteja_reply(html)
     self.assertFalse("alert" in net)
Exemplo n.º 10
0
 def test_treure_style(self):
     msg = llegir_mail("reply-mutipart-alternative.txt")
     html = msg.get_body()
     net = netejahtml.neteja_reply(html)
     self.assertFalse("text-decoration" in net)
Exemplo n.º 11
0
 def test_treure_comentaris(self):
     msg = llegir_mail("comentaris.txt")
     html = msg.get_body()
     net = netejahtml.neteja_nou(html)
     print net
     self.assertFalse("supportList" in net)
Exemplo n.º 12
0
 def test_treure_script(self):
     msg = llegir_mail("reply-mutipart-alternative.txt")
     html = msg.get_body()
     net = netejahtml.neteja_reply(html)
     self.assertFalse("alert" in net)