summaryrefslogtreecommitdiff
path: root/tests/test_stanza_xep_0030.py
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-10-22 13:21:06 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-10-22 13:21:44 +0100
commitdcacc7d7d50d3f720cb14f1382c6d4f5a13664a4 (patch)
tree2fcadd89e8d8244a22769edd57426c8e2146d2ad /tests/test_stanza_xep_0030.py
parentc4285961df7004f6c54d6d38960c4c075d0877b6 (diff)
downloadslixmpp-dcacc7d7d50d3f720cb14f1382c6d4f5a13664a4.tar.gz
slixmpp-dcacc7d7d50d3f720cb14f1382c6d4f5a13664a4.tar.bz2
slixmpp-dcacc7d7d50d3f720cb14f1382c6d4f5a13664a4.tar.xz
slixmpp-dcacc7d7d50d3f720cb14f1382c6d4f5a13664a4.zip
sed -i 's/set(\[\(.*\)\])$/{\1}/g' **/*.py
Diffstat (limited to 'tests/test_stanza_xep_0030.py')
-rw-r--r--tests/test_stanza_xep_0030.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_stanza_xep_0030.py b/tests/test_stanza_xep_0030.py
index d8e99ffb..71dc7032 100644
--- a/tests/test_stanza_xep_0030.py
+++ b/tests/test_stanza_xep_0030.py
@@ -274,7 +274,7 @@ 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', 'no', None)])
+ expected = {('client', 'pc', 'no', None)}
result = iq['disco_info'].get_identities(lang='no')
self.failUnless(result == expected,
"Identities do not match:\n%s\n%s" % (
@@ -336,7 +336,7 @@ class TestDisco(SlixTest):
iq['disco_info'].add_feature('bar')
iq['disco_info'].add_feature('baz')
- expected = set(['foo', 'bar', 'baz'])
+ expected = {'foo', 'bar', 'baz'}
self.failUnless(iq['disco_info']['features'] == expected,
"Features do not match:\n%s\n%s" % (
expected,