Mercurial > libervia-pubsub
diff sat_pubsub/test/test_backend.py @ 364:8bd8be6815ab
completed docstrings + use short notation for sets
author | Arnaud Joset <info@agayon.be> |
---|---|
date | Fri, 03 Nov 2017 13:59:54 +0100 |
parents | 5d7c3787672e |
children | 9fbb31ce495b |
line wrap: on
line diff
--- a/sat_pubsub/test/test_backend.py Fri Nov 03 13:59:15 2017 +0100 +++ b/sat_pubsub/test/test_backend.py Fri Nov 03 13:59:54 2017 +0100 @@ -221,7 +221,7 @@ subscriber, subscriptions, items = result[-1] self.assertEquals(OWNER, subscriber) - self.assertEquals(set([sub]), subscriptions) + self.assertEquals({sub}, subscriptions) self.assertEquals([item], items) self.storage = self.NodeStore({'test': TestNode()}) @@ -254,7 +254,7 @@ self.assertEquals(1, len(result)) subscriber, subscriptions, items = result[-1] self.assertEquals(OWNER, subscriber) - self.assertEquals(set([subRoot]), subscriptions) + self.assertEquals({subRoot}, subscriptions) self.assertEquals([item], items) self.storage = self.NodeStore({'test': TestNode(), @@ -287,7 +287,7 @@ subscriber, subscriptions, items = result[-1] self.assertEquals(OWNER, subscriber) - self.assertEquals(set([sub, subRoot]), subscriptions) + self.assertEquals({sub, subRoot}, subscriptions) self.assertEquals([item], items) self.storage = self.NodeStore({'test': TestNode(),