Commit 338d29f6 authored by sylvain.thenault@logilab.fr's avatar sylvain.thenault@logilab.fr
Browse files

cleanup

parent dbed10a15bec
"""automatic tests for email views"""
from mx.DateTime import now
from cubicweb.devtools.testlib import AutomaticWebTest
class AutomaticWebTest(AutomaticWebTest):
def to_test_etypes(self):
return set(('Email', 'EmailPart', 'EmailThread'))
def list_startup_views(self):
return ()
......
"""unit tests for email mbox import functionnality"""
from mx.DateTime import now
from StringIO import StringIO
from logilab.common.testlib import TestCase, unittest_main
......@@ -22,7 +21,6 @@ class MBOXImporterTC(EnvBasedTC):
self.assertEquals(mi.skipped, [])
rset = self.execute('Any X ORDERBY S WHERE X is Email, X subject S')
self.assertEquals(len(rset), 2)
email = rset.get_entity(0, 0)
self.assertEquals(email.subject, 'Re: [Python-projects] Pylint: Disable-msg for a block or statement?')
self.assertEquals(email.sender[0].address, 'pink@odahoda.de')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment