summaryrefslogtreecommitdiff
path: root/src/leap/mail/smtp/tests/test_gateway.py
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2014-09-04 11:41:18 -0500
committerRuben Pollan <meskio@sindominio.net>2014-09-04 11:41:18 -0500
commit7e84a21a837b8d3f1ce72bc349ab966ef80ed1a2 (patch)
tree12ecb3db7908cff56154fcc77a89efe7783c3f9b /src/leap/mail/smtp/tests/test_gateway.py
parent7fb94e10525e76b6533e720c56945fa81df3b9fd (diff)
parent4ececdae474791ab58b42f195bfe37e9ad3d03b2 (diff)
Merge branch 'kali/feature/cleanup-mail-tests' into develop
Diffstat (limited to 'src/leap/mail/smtp/tests/test_gateway.py')
-rw-r--r--src/leap/mail/smtp/tests/test_gateway.py14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/leap/mail/smtp/tests/test_gateway.py b/src/leap/mail/smtp/tests/test_gateway.py
index 88ee5f7..466677f 100644
--- a/src/leap/mail/smtp/tests/test_gateway.py
+++ b/src/leap/mail/smtp/tests/test_gateway.py
@@ -23,13 +23,9 @@ SMTP gateway tests.
import re
from datetime import datetime
-from gnupg._util import _make_binary_stream
from twisted.test import proto_helpers
-from twisted.mail.smtp import (
- User,
- Address,
- SMTPBadRcpt,
-)
+from twisted.mail.smtp import User, Address
+
from mock import Mock
from leap.mail.smtp.gateway import (
@@ -137,7 +133,7 @@ class TestSmtpGateway(TestCaseWithKeyManager):
self._config['port'], self._config['cert'], self._config['key'])
for line in self.EMAIL_DATA[4:12]:
m.lineReceived(line)
- #m.eomReceived() # this includes a defer, so we avoid calling it here
+ # m.eomReceived() # this includes a defer, so we avoid calling it here
m.lines.append('') # add a trailing newline
# we need to call the following explicitelly because it was deferred
# inside the previous method
@@ -181,7 +177,7 @@ class TestSmtpGateway(TestCaseWithKeyManager):
for line in self.EMAIL_DATA[4:12]:
m.lineReceived(line)
# trigger encryption and signing
- #m.eomReceived() # this includes a defer, so we avoid calling it here
+ # m.eomReceived() # this includes a defer, so we avoid calling it here
m.lines.append('') # add a trailing newline
# we need to call the following explicitelly because it was deferred
# inside the previous method
@@ -229,7 +225,7 @@ class TestSmtpGateway(TestCaseWithKeyManager):
for line in self.EMAIL_DATA[4:12]:
m.lineReceived(line)
# trigger signing
- #m.eomReceived() # this includes a defer, so we avoid calling it here
+ # m.eomReceived() # this includes a defer, so we avoid calling it here
m.lines.append('') # add a trailing newline
# we need to call the following explicitelly because it was deferred
# inside the previous method