From 40008d7a49f107feee522fff81d914b531f18e77 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 28 May 2013 12:04:44 +0100 Subject: [PATCH 3/4] tests: fix JabberAuthenticator when self.emit_events is False We don't currently use JabberAuthenticator in this mode, so nobody noticed that it didn't work. I'm about to add a test that does use it. --- tests/twisted/gabbletest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/twisted/gabbletest.py b/tests/twisted/gabbletest.py index 2ee15dd..aa63c6d 100644 --- a/tests/twisted/gabbletest.py +++ b/tests/twisted/gabbletest.py @@ -160,7 +160,7 @@ class JabberAuthenticator(GabbleAuthenticator): self._event_func(Event('auth-second-iq', authenticator=self, iq=iq, id=iq["id"])) else: - self.respondToSecondIq(self, iq) + self.respondToSecondIq(iq) def respondToSecondIq(self, iq): username = xpath.queryForNodes('/iq/query/username', iq) -- 1.7.10.4