summaryrefslogtreecommitdiffstats
path: root/kittystore/test/test_scrub.py
diff options
context:
space:
mode:
Diffstat (limited to 'kittystore/test/test_scrub.py')
-rw-r--r--kittystore/test/test_scrub.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/kittystore/test/test_scrub.py b/kittystore/test/test_scrub.py
index 2e30cd7..3aef0d2 100644
--- a/kittystore/test/test_scrub.py
+++ b/kittystore/test/test_scrub.py
@@ -129,3 +129,10 @@ class TestScrubber(unittest.TestCase):
u'accented letters : \xe9 \xe8 \xe7 \xe0.\r\nAnd an '
u'attachment with an accented filename\r\n\r\n\r\n\r\n')
+ def test_remove_next_part_from_content(self):
+ with open(get_test_file("pipermail_nextpart.txt")) as email_file:
+ msg = email.message_from_file(email_file, _class=Message)
+ scrubber = Scrubber("testlist@example.com", msg)
+ contents, attachments = scrubber.scrub()
+
+ self.failIf("-------------- next part --------------" in contents)