summaryrefslogtreecommitdiffstats
path: root/tests/functional/test_wallace/test_002_footer.py
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2016-05-04 15:53:48 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2016-05-04 15:53:48 +0200
commitc204eaaa2c9a006432fe00489a352833143db01d (patch)
tree18860f2e335b9a98d34f404d5c4b81d22f2ce222 /tests/functional/test_wallace/test_002_footer.py
parent4a24e0cc403321713ee1201ade9d36956da1c060 (diff)
downloadpykolab-c204eaaa2c9a006432fe00489a352833143db01d.tar.gz
CS fixes according to PEP8 (ignored mostly line-length errors only)
Summary: . Reviewers: #pykolab_developers Differential Revision: https://git.kolab.org/D134
Diffstat (limited to 'tests/functional/test_wallace/test_002_footer.py')
-rw-r--r--tests/functional/test_wallace/test_002_footer.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/functional/test_wallace/test_002_footer.py b/tests/functional/test_wallace/test_002_footer.py
index 4c1599c..d6e5836 100644
--- a/tests/functional/test_wallace/test_002_footer.py
+++ b/tests/functional/test_wallace/test_002_footer.py
@@ -17,6 +17,7 @@ from pykolab.imap import IMAP
conf = pykolab.getConf()
+
class TestWallaceFooter(unittest.TestCase):
user = None
@@ -115,10 +116,10 @@ class TestWallaceFooter(unittest.TestCase):
def send_message(self, msg, _to=None, _from=None):
smtp = smtplib.SMTP('localhost', 10026)
- if _to == None:
+ if _to is None:
_to = self.send_to
- if _from == None:
+ if _from is None:
_from = self.send_from
smtp.sendmail(_from, _to, msg.as_string())