[telepathy-gabble-0.16] telepathy-gabble: tests: fix JabberAuthenticator when self.emit_events is False

Simon McVittie smcv at kemper.freedesktop.org
Thu May 30 07:53:06 PDT 2013


Module: telepathy-gabble
Branch: telepathy-gabble-0.16
Commit: c1d101558de76e3ebacd05fb032764a126d28468
URL:    http://cgit.freedesktop.org/telepathy/telepathy-gabble/commit/?id=c1d101558de76e3ebacd05fb032764a126d28468

Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date:   Tue May 28 12:04:44 2013 +0100

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 files changed, 1 insertions(+), 1 deletions(-)

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)



More information about the telepathy-commits mailing list