diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2016-10-22 13:20:27 +0100 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2016-10-22 13:21:42 +0100 |
commit | c4285961df7004f6c54d6d38960c4c075d0877b6 (patch) | |
tree | 62cfaa24e4204a0cbfc4936462c0efe0892e3443 /tests/test_stream_presence.py | |
parent | 1038f656eb1f766983a5869611daab447817a6ac (diff) | |
download | slixmpp-c4285961df7004f6c54d6d38960c4c075d0877b6.tar.gz slixmpp-c4285961df7004f6c54d6d38960c4c075d0877b6.tar.bz2 slixmpp-c4285961df7004f6c54d6d38960c4c075d0877b6.tar.xz slixmpp-c4285961df7004f6c54d6d38960c4c075d0877b6.zip |
sed -i 's/set((\(.*\)))$/{\1}/g' **/*.py
Diffstat (limited to 'tests/test_stream_presence.py')
-rw-r--r-- | tests/test_stream_presence.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_stream_presence.py b/tests/test_stream_presence.py index ea2337a2..27559785 100644 --- a/tests/test_stream_presence.py +++ b/tests/test_stream_presence.py @@ -102,7 +102,7 @@ class TestStreamPresence(SlixTest): to="tester@localhost" /> """) - expected = set(('presence_available', 'got_online')) + expected = {'presence_available', 'got_online'} self.assertEqual(events, expected, "Incorrect events triggered: %s" % events) @@ -151,7 +151,7 @@ class TestStreamPresence(SlixTest): type="subscribe" /> """) - expected = set(('presence_subscribe', 'changed_subscription')) + expected = {'presence_subscribe', 'changed_subscription'} self.assertEqual(events, expected, "Incorrect events triggered: %s" % events) @@ -185,7 +185,7 @@ class TestStreamPresence(SlixTest): type="unsubscribed" /> """) - expected = set(('presence_subscribe', 'changed_subscription')) + expected = {'presence_subscribe', 'changed_subscription'} self.assertEqual(events, expected, "Incorrect events triggered: %s" % events) |