diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2016-10-22 13:35:54 +0100 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2016-10-22 13:37:46 +0100 |
commit | d008988843f61efb57cb06a30b8a47a357e248a4 (patch) | |
tree | e1bd486fd53639561f5af179451f846e371b570c /tests/test_stream_xep_0030.py | |
parent | dcacc7d7d50d3f720cb14f1382c6d4f5a13664a4 (diff) | |
download | slixmpp-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_stream_xep_0030.py')
-rw-r--r-- | tests/test_stream_xep_0030.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_stream_xep_0030.py b/tests/test_stream_xep_0030.py index 1d6337d5..d1ad9087 100644 --- a/tests/test_stream_xep_0030.py +++ b/tests/test_stream_xep_0030.py @@ -307,7 +307,7 @@ class TestStreamDisco(SlixTest): </iq> """) - self.assertEqual(events, set(('disco_info',)), + self.assertEqual(events, {'disco_info'}, "Disco info event was not triggered: %s" % events) def testDynamicItemsJID(self): @@ -502,9 +502,9 @@ class TestStreamDisco(SlixTest): </iq> """) - items = set([('user@localhost', 'bar', 'Test'), - ('user@localhost', 'baz', 'Test 2')]) - self.assertEqual(events, set(('disco_items',)), + items = {('user@localhost', 'bar', 'Test'), + ('user@localhost', 'baz', 'Test 2')} + self.assertEqual(events, {'disco_items'}, "Disco items event was not triggered: %s" % events) self.assertEqual(results, items, "Unexpected items: %s" % results) |