Exemple #1
0
 def setUp(self):
     if sys.version_info >= (3, 2):
         import io
         msg1 = email.message_from_file(io.open(join(DATA, 'test1.msg'), encoding='utf8'))
         msg2 = email.message_from_file(io.open(join(DATA, 'test2.msg'), encoding='utf8'))
     else:
         msg1 = email.message_from_file(open(join(DATA, 'test1.msg')))
         msg2 = email.message_from_file(open(join(DATA, 'test2.msg')))
     self.umessage1 = UMessage(msg1)
     self.umessage2 = UMessage(msg2)
 def setUp(self):
     msg1 = email.message_from_file(open('data/test1.msg'))
     self.umessage1 = UMessage(msg1)
     msg2 = email.message_from_file(open('data/test2.msg'))
     self.umessage2 = UMessage(msg2)
 def setUp(self):
     msg1 = email.message_from_file(open(join(DATA, 'test1.msg')))
     self.umessage1 = UMessage(msg1)
     msg2 = email.message_from_file(open(join(DATA, 'test2.msg')))
     self.umessage2 = UMessage(msg2)