mirror of https://github.com/scrapy/scrapy.git
Merge pull request #1715 from lopuhin/py3-test-mail
[MRG+1] py3: fix test_mail
This commit is contained in:
commit
85ae273230
|
|
@ -1,6 +1,5 @@
|
|||
tests/test_exporters.py
|
||||
tests/test_linkextractors_deprecated.py
|
||||
tests/test_mail.py
|
||||
tests/test_pipeline_files.py
|
||||
tests/test_pipeline_images.py
|
||||
tests/test_proxy_connect.py
|
||||
|
|
@ -22,4 +21,3 @@ scrapy/linkextractors/htmlparser.py
|
|||
scrapy/downloadermiddlewares/cookies.py
|
||||
scrapy/extensions/statsmailer.py
|
||||
scrapy/extensions/memusage.py
|
||||
scrapy/mail.py
|
||||
|
|
|
|||
|
|
@ -53,8 +53,8 @@ class MailSenderTest(unittest.TestCase):
|
|||
self.assertEqual(len(payload), 2)
|
||||
|
||||
text, attach = payload
|
||||
self.assertEqual(text.get_payload(decode=True), 'body')
|
||||
self.assertEqual(attach.get_payload(decode=True), 'content')
|
||||
self.assertEqual(text.get_payload(decode=True), b'body')
|
||||
self.assertEqual(attach.get_payload(decode=True), b'content')
|
||||
|
||||
def _catch_mail_sent(self, **kwargs):
|
||||
self.catched_msg = dict(**kwargs)
|
||||
|
|
|
|||
Loading…
Reference in New Issue