use pubsub settings

This commit is contained in:
Nathan Fritz 2010-05-11 12:20:57 -07:00
parent c4fa3ab654
commit 2f8c1954f0
2 changed files with 3 additions and 2 deletions

View file

@ -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)

View file

@ -1,5 +1,6 @@
[settings]
enabled=true
pubsub=pubsub.recon
[account1]
jid=fritzy@recon