summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2017-05-15 16:42:28 +0200
committerRuben Pollan <meskio@sindominio.net>2017-05-16 19:28:39 +0200
commitb667facfe3c36e44396193a12748aaa9efbd718b (patch)
treecc52801472f886a0fd82fe4035c3d0c455bd541c
parent53137336d7d3dd30d710e06b17b9f96c1c857c72 (diff)
[tests] remove listener test
I've removed the add_listener method because it's not used anywhere.
-rw-r--r--tests/integration/mail/incoming/test_incoming_mail.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/tests/integration/mail/incoming/test_incoming_mail.py b/tests/integration/mail/incoming/test_incoming_mail.py
index 3633c73..43dbd09 100644
--- a/tests/integration/mail/incoming/test_incoming_mail.py
+++ b/tests/integration/mail/incoming/test_incoming_mail.py
@@ -386,20 +386,6 @@ subject: independence of cyberspace
d.addCallback(add_verified_signature_header_called)
return d
- def testListener(self):
- self.called = False
-
- def listener(uid):
- self.called = True
-
- def listener_called(_):
- self.assertTrue(self.called)
-
- self.fetcher.add_listener(listener)
- d = self._do_fetch(self.EMAIL)
- d.addCallback(listener_called)
- return d
-
def _do_fetch(self, message):
d = self._create_incoming_email(message)
d.addCallback(