Update tests for XEP-0092

This commit is contained in:
Lance Stout 2013-01-20 16:08:01 -08:00
parent ccf7916257
commit a1716de683

View file

@ -36,7 +36,9 @@ class TestStreamSet(SleekTest):
def query(): def query():
r = self.xmpp['xep_0092'].get_version('foo@bar') r = self.xmpp['xep_0092'].get_version('foo@bar')
results.append(r) results.append((r['software_version']['name'],
r['software_version']['version'],
r['software_version']['os']))
self.stream_start(mode='client', plugins=['xep_0030', 'xep_0092']) self.stream_start(mode='client', plugins=['xep_0030', 'xep_0092'])
@ -61,7 +63,7 @@ class TestStreamSet(SleekTest):
t.join() t.join()
expected = [{'name': 'Foo', 'version': '1.0', 'os':'Linux'}] expected = [('Foo', '1.0', 'Linux')]
self.assertEqual(results, expected, self.assertEqual(results, expected,
"Did not receive expected results: %s" % results) "Did not receive expected results: %s" % results)