summaryrefslogtreecommitdiff
path: root/tests/test_stanza_xep_0030.py
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-10-22 13:35:54 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-10-22 13:37:46 +0100
commitd008988843f61efb57cb06a30b8a47a357e248a4 (patch)
treee1bd486fd53639561f5af179451f846e371b570c /tests/test_stanza_xep_0030.py
parentdcacc7d7d50d3f720cb14f1382c6d4f5a13664a4 (diff)
downloadslixmpp-d008988843f61efb57cb06a30b8a47a357e248a4.tar.gz
slixmpp-d008988843f61efb57cb06a30b8a47a357e248a4.tar.bz2
slixmpp-d008988843f61efb57cb06a30b8a47a357e248a4.tar.xz
slixmpp-d008988843f61efb57cb06a30b8a47a357e248a4.zip
Manual cleanup of the remaining set([…]) and set((…)).
Diffstat (limited to 'tests/test_stanza_xep_0030.py')
-rw-r--r--tests/test_stanza_xep_0030.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/test_stanza_xep_0030.py b/tests/test_stanza_xep_0030.py
index 71dc7032..d85f1980 100644
--- a/tests/test_stanza_xep_0030.py
+++ b/tests/test_stanza_xep_0030.py
@@ -254,10 +254,10 @@ class TestDisco(SlixTest):
iq['disco_info'].add_identity('client', 'pc', lang='en')
iq['disco_info'].add_identity('client', 'pc', lang='fr')
- expected = set([('client', 'pc', None, None),
- ('client', 'pc', 'no', None),
- ('client', 'pc', 'en', None),
- ('client', 'pc', 'fr', None)])
+ expected = {('client', 'pc', None, None),
+ ('client', 'pc', 'no', None),
+ ('client', 'pc', 'en', None),
+ ('client', 'pc', 'fr', None)}
self.failUnless(iq['disco_info']['identities'] == expected,
"Identities do not match:\n%s\n%s" % (
expected,
@@ -472,9 +472,9 @@ class TestDisco(SlixTest):
node='bar',
name='Tester')
- expected = set([('user@localhost', None, None),
- ('user@localhost', 'foo', None),
- ('test@localhost', 'bar', 'Tester')])
+ expected = {('user@localhost', None, None),
+ ('user@localhost', 'foo', None),
+ ('test@localhost', 'bar', 'Tester')}
self.failUnless(iq['disco_items']['items'] == expected,
"Items do not match:\n%s\n%s" % (
expected,