diff options
author | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-08-11 14:59:32 +0200 |
---|---|---|
committer | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-08-11 17:00:34 +0200 |
commit | 798ffc624f0a2aa034846a322823caaf3d6f3837 (patch) | |
tree | 4a67d9d3b6bb9f70e6c921ea21ac3261cea9a715 /service/test/unit/adapter | |
parent | 224a4a7cd94d3a1eb825908e33feb10e72ad1a31 (diff) |
Fixed pep8.
Diffstat (limited to 'service/test/unit/adapter')
-rw-r--r-- | service/test/unit/adapter/mailstore/test_body_parser.py | 2 | ||||
-rw-r--r-- | service/test/unit/adapter/mailstore/test_leap_mailstore.py | 8 | ||||
-rw-r--r-- | service/test/unit/adapter/search/test_search.py | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/service/test/unit/adapter/mailstore/test_body_parser.py b/service/test/unit/adapter/mailstore/test_body_parser.py index 1af4ce50..eeb1a2ed 100644 --- a/service/test/unit/adapter/mailstore/test_body_parser.py +++ b/service/test/unit/adapter/mailstore/test_body_parser.py @@ -27,4 +27,4 @@ class BodyParserTest(unittest.TestCase): def test_base64_text(self): parser = BodyParser('dGVzdCB0ZXh0\n', content_type='text/plain; charset="utf-8"', content_transfer_encoding='base64') - self.assertEqual('test text', parser.parsed_content())
\ No newline at end of file + self.assertEqual('test text', parser.parsed_content()) diff --git a/service/test/unit/adapter/mailstore/test_leap_mailstore.py b/service/test/unit/adapter/mailstore/test_leap_mailstore.py index 3d4df334..4789f02c 100644 --- a/service/test/unit/adapter/mailstore/test_leap_mailstore.py +++ b/service/test/unit/adapter/mailstore/test_leap_mailstore.py @@ -45,17 +45,17 @@ class TestLeapMail(TestCase): def test_email_addresses_in_to_are_split_into_a_list(self): mail = LeapMail('', 'INBOX', {'To': 'first@example.test,second@example.test'}) - self.assertEqual(['first@example.test', 'second@example.test'],mail.headers['To']) + self.assertEqual(['first@example.test', 'second@example.test'], mail.headers['To']) def test_email_addresses_in_cc_are_split_into_a_list(self): mail = LeapMail('', 'INBOX', {'Cc': 'first@example.test,second@example.test'}) - self.assertEqual(['first@example.test', 'second@example.test'],mail.headers['Cc']) + self.assertEqual(['first@example.test', 'second@example.test'], mail.headers['Cc']) def test_email_addresses_in_bcc_are_split_into_a_list(self): mail = LeapMail('', 'INBOX', {'Bcc': 'first@example.test,second@example.test'}) - self.assertEqual(['first@example.test', 'second@example.test'],mail.headers['Bcc']) + self.assertEqual(['first@example.test', 'second@example.test'], mail.headers['Bcc']) def test_email_addresses_might_be_empty_array(self): mail = LeapMail('', 'INBOX', {'Cc': None}) @@ -103,7 +103,7 @@ class TestLeapMail(TestCase): self.assertEqual(expected_raw, result) def test_headers_none_recipients_are_converted_to_empty_array(self): - mail = LeapMail('id', 'INBOX', {'To':None, 'Cc': None, 'Bcc': None}) + mail = LeapMail('id', 'INBOX', {'To': None, 'Cc': None, 'Bcc': None}) self.assertEquals([], mail.headers['To']) self.assertEquals([], mail.headers['Cc']) diff --git a/service/test/unit/adapter/search/test_search.py b/service/test/unit/adapter/search/test_search.py index 3d6a050f..76e704b6 100644 --- a/service/test/unit/adapter/search/test_search.py +++ b/service/test/unit/adapter/search/test_search.py @@ -57,7 +57,7 @@ class SearchEngineTest(unittest.TestCase): } # when - se.index_mail(LeapMail('mailid', 'INBOX', headers=headers)) # test_helper.pixelated_mail(extra_headers=headers, chash='mailid')) + se.index_mail(LeapMail('mailid', 'INBOX', headers=headers)) # test_helper.pixelated_mail(extra_headers=headers, chash='mailid')) result = se.search('folker') |