Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/python-nbxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPhilipp Hörist <philipp@hoerist.com>2018-12-21 14:34:54 +0300
committerPhilipp Hörist <philipp@hoerist.com>2018-12-21 14:34:54 +0300
commit5bea073ba9ef04f5fa58e440ae79e84f46cd95b3 (patch)
treef84084b76d2378be95092700851a74aaea49fc18 /test
parentaf28de82f914cc0b0d0d608046f1e51b9524d180 (diff)
Fix test
Diffstat (limited to 'test')
-rw-r--r--test/unit/test_xmpp_dispatcher_nb.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/unit/test_xmpp_dispatcher_nb.py b/test/unit/test_xmpp_dispatcher_nb.py
index dfd0b52..da7a7ab 100644
--- a/test/unit/test_xmpp_dispatcher_nb.py
+++ b/test/unit/test_xmpp_dispatcher_nb.py
@@ -8,6 +8,8 @@ from test import lib
from nbxmpp import dispatcher_nb
from nbxmpp import protocol
+from nbxmpp.protocol import JID
+
class TestDispatcherNB(unittest.TestCase):
'''
@@ -19,6 +21,7 @@ class TestDispatcherNB(unittest.TestCase):
# Setup mock client
self.client = Mock()
+ self.client.get_bound_jid.return_value = JID('test@test.test')
self.client.defaultNamespace = protocol.NS_CLIENT
self.client.Connection = Mock() # mock transport
self.con = self.client.Connection