Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
email
Commits
7e7686a83e7d
Commit
338d29f6
authored
May 13, 2009
by
sylvain.thenault@logilab.fr
Browse files
cleanup
parent
dbed10a15bec
Changes
2
Hide whitespace changes
Inline
Side-by-side
test/test_eemail.py
View file @
7e7686a8
"""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
()
...
...
test/unittest_mboximport.py
View file @
7e7686a8
"""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'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment