Exemplo n.º 1
0
 def test_format_email_with_more_replies(self):
     email_file = open(
         (self.email_main_dir + 'arnold-j' + '/sent/' + '118.'), 'r')
     email = email_file.read()
     expected = email[428:702]
     email = ef.format_email(email)
     self.assertEquals(expected, email)
Exemplo n.º 2
0
 def test_format_email_external_reply(self):
     email_file = open(
         (self.email_main_dir + 'arnold-j' + '/sent/' + '25.'), 'r')
     email = email_file.read()
     expected = email[454:569]
     email = ef.format_email(email)
     self.assertEquals(expected, email)
Exemplo n.º 3
0
 def test_format_email_with_mix_forward_first(self):
     email_file = open((self.email_main_dir + 'bass-e' + '/sent/' + '161.'),
                       'r')
     email = email_file.read()
     expected = email[416:459]
     email = ef.format_email(email)
     self.assertEquals(expected, email)
Exemplo n.º 4
0
 def test_format_email_with_mix_reply_first(self):
     email_file = open(
         (self.email_main_dir + 'arnold-j' + '/sent/' + '82.'), 'r')
     email = email_file.read()
     expected = email[445:597]
     email = ef.format_email(email)
     self.assertEquals(expected, email)
Exemplo n.º 5
0
 def test_format_email_with_reply(self):
     email_file = open((self.email_main_dir + 'arnold-j' + '/sent/' + '9.'),
                       'r')
     email = email_file.read()
     expected = email[448:679]
     email = ef.format_email(email)
     self.assertEquals(expected, email)
Exemplo n.º 6
0
 def test_format_email_with_forward_only(self):
     expected = '\r\n'
     email_file = open((self.email_main_dir + 'allen-p' + '/sent/' + '2.'),
                       'r')
     email = email_file.read()
     email = ef.format_email(email)
     self.assertEquals(expected, email)
Exemplo n.º 7
0
 def test_format_email_with_tags_only(self):
     expected = '\r\nyes'
     email_file = open((self.email_main_dir + 'carson-m' + '/sent/' + '8.'),
                       'r')
     email = email_file.read()
     email = ef.format_email(email)
     self.assertEquals(expected, email)