From b667facfe3c36e44396193a12748aaa9efbd718b Mon Sep 17 00:00:00 2001 From: "Kali Kaneko (leap communications)" Date: Mon, 15 May 2017 16:42:28 +0200 Subject: [tests] remove listener test I've removed the add_listener method because it's not used anywhere. --- tests/integration/mail/incoming/test_incoming_mail.py | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'tests/integration/mail') 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( -- cgit v1.2.3