summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuda Dornelles <ddornell@thoughtworks.com>2014-09-04 19:33:48 -0300
committerDuda Dornelles <ddornell@thoughtworks.com>2014-09-04 19:33:48 -0300
commit8e653650300948f9bfd91619795ac840d52e73a5 (patch)
tree211d09e3bd2f614bf252bac6871ad2235a7990d1
parentaa40c93c625baecbef79168c2cffd683be1ff8f3 (diff)
fixing pep8
-rw-r--r--service/pixelated/adapter/pixelated_mail.py4
-rw-r--r--service/test/adapter/pixelated_mail_test.py10
2 files changed, 7 insertions, 7 deletions
diff --git a/service/pixelated/adapter/pixelated_mail.py b/service/pixelated/adapter/pixelated_mail.py
index 8ed27262..40e4f71f 100644
--- a/service/pixelated/adapter/pixelated_mail.py
+++ b/service/pixelated/adapter/pixelated_mail.py
@@ -56,14 +56,14 @@ class PixelatedMail:
def _split_recipients(self, header_type, temporary_headers):
if(temporary_headers.get(header_type) is not None):
recipients = temporary_headers[header_type].split(',')
- temporary_headers[header_type] = map (lambda x: x.replace(' ', ''), recipients)
+ temporary_headers[header_type] = map(lambda x: x.replace(' ', ''), recipients)
def _extract_headers(self):
temporary_headers = {}
for header, value in self.leap_mail.hdoc.content['headers'].items():
temporary_headers[header.lower()] = value
- map(lambda x: self._split_recipients(x, temporary_headers), ['to', 'bcc','cc'])
+ map(lambda x: self._split_recipients(x, temporary_headers), ['to', 'bcc', 'cc'])
return temporary_headers
diff --git a/service/test/adapter/pixelated_mail_test.py b/service/test/adapter/pixelated_mail_test.py
index 2e62bc41..66aa3590 100644
--- a/service/test/adapter/pixelated_mail_test.py
+++ b/service/test/adapter/pixelated_mail_test.py
@@ -93,14 +93,14 @@ class TestPixelatedMail(unittest.TestCase):
headers['to'] = "nlima@example.com, ddornelles@example.com"
headers['bcc'] = "nlima@example.com, ddornelles@example.com"
headers['cc'] = "nlima@example.com, ddornelles@example.com"
-
+
leap_mail = test_helper.leap_mail(headers=headers)
pixelated_mail = PixelatedMail.from_leap_mail(leap_mail)
-
- self.assertEquals(pixelated_mail.headers['to'], ["nlima@example.com", "ddornelles@example.com" ])
- self.assertEquals(pixelated_mail.headers['bcc'], ["nlima@example.com", "ddornelles@example.com" ])
- self.assertEquals(pixelated_mail.headers['cc'], ["nlima@example.com", "ddornelles@example.com" ])
+
+ self.assertEquals(pixelated_mail.headers['to'], ["nlima@example.com", "ddornelles@example.com"])
+ self.assertEquals(pixelated_mail.headers['bcc'], ["nlima@example.com", "ddornelles@example.com"])
+ self.assertEquals(pixelated_mail.headers['cc'], ["nlima@example.com", "ddornelles@example.com"])
def test_mark_as_read(self):
mail = PixelatedMail.from_dict(self.mail_dict)