summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2013-05-28 12:04:44 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2013-05-29 17:22:53 +0100
commitc1d101558de76e3ebacd05fb032764a126d28468 (patch)
tree9eb0e76007510b50de68d29094a7fc60d5262dda
parente8623e79ec356d4e72286140aa31656dc87b0567 (diff)
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.
-rw-r--r--tests/twisted/gabbletest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/twisted/gabbletest.py b/tests/twisted/gabbletest.py
index 2ee15ddf6..aa63c6ddf 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)