summaryrefslogtreecommitdiff
path: root/conn_tests
diff options
context:
space:
mode:
authorNathan Fritz <nathan@andyet.net>2010-05-11 12:20:57 -0700
committerNathan Fritz <nathan@andyet.net>2010-05-11 12:20:57 -0700
commit2f8c1954f0be9594720eb7637188290cefaaec7d (patch)
tree77b93892900165f8c43d56a71d2bedd523a295e4 /conn_tests
parentc4fa3ab654969a02780cb29508290b1ddd5f1543 (diff)
downloadslixmpp-2f8c1954f0be9594720eb7637188290cefaaec7d.tar.gz
slixmpp-2f8c1954f0be9594720eb7637188290cefaaec7d.tar.bz2
slixmpp-2f8c1954f0be9594720eb7637188290cefaaec7d.tar.xz
slixmpp-2f8c1954f0be9594720eb7637188290cefaaec7d.zip
use pubsub settings
Diffstat (limited to 'conn_tests')
-rw-r--r--conn_tests/test_pubsubserver.py4
-rw-r--r--conn_tests/testconfig.ini1
2 files changed, 3 insertions, 2 deletions
diff --git a/conn_tests/test_pubsubserver.py b/conn_tests/test_pubsubserver.py
index 9fd3bd8f..c9ff900e 100644
--- a/conn_tests/test_pubsubserver.py
+++ b/conn_tests/test_pubsubserver.py
@@ -65,7 +65,7 @@ class TestPubsubServer(unittest.TestCase):
"""Retrieving node config and reconfiguring"""
nconfig = self.xmpp1['xep_0060'].getNodeConfig(self.pshost, 'testnode2')
self.failUnless(nconfig, "No configuration returned")
- #print("%s == %s" % (nconfig.getValues(), self.statev['defaultconfig'].getValues()))
+ #print("\n%s ==\n %s" % (nconfig.getValues(), self.statev['defaultconfig'].getValues()))
self.failUnless(nconfig.getValues() == self.statev['defaultconfig'].getValues(), "Configuration does not match")
self.failUnless(self.xmpp1['xep_0060'].setNodeConfig(self.pshost, 'testnode2', nconfig))
@@ -168,7 +168,7 @@ if __name__ == '__main__':
TestPubsubServer.xmpp1 = xmpp1
TestPubsubServer.xmpp2 = xmpp2
- TestPubsubServer.pshost = 'pubsub.recon'
+ TestPubsubServer.pshost = config.get('settings', 'pubsub')
xmpp1.waitforstart.get(True)
xmpp2.waitforstart.get(True)
testsuite = unittest.TestLoader().loadTestsFromTestCase(TestPubsubServer)
diff --git a/conn_tests/testconfig.ini b/conn_tests/testconfig.ini
index 91f97a92..fc57bd17 100644
--- a/conn_tests/testconfig.ini
+++ b/conn_tests/testconfig.ini
@@ -1,5 +1,6 @@
[settings]
enabled=true
+pubsub=pubsub.recon
[account1]
jid=fritzy@recon