summaryrefslogtreecommitdiff
path: root/kazoo/tests/test_party.py
diff options
context:
space:
mode:
Diffstat (limited to 'kazoo/tests/test_party.py')
-rw-r--r--kazoo/tests/test_party.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/kazoo/tests/test_party.py b/kazoo/tests/test_party.py
index 2089d54..1b32523 100644
--- a/kazoo/tests/test_party.py
+++ b/kazoo/tests/test_party.py
@@ -9,8 +9,7 @@ class KazooPartyTests(KazooTestCase):
self.path = "/" + uuid.uuid4().hex
def test_party(self):
- parties = [self.client.Party(self.path, "p%s" % i)
- for i in range(5)]
+ parties = [self.client.Party(self.path, "p%s" % i) for i in range(5)]
one_party = parties[0]
@@ -20,14 +19,14 @@ class KazooPartyTests(KazooTestCase):
participants = set()
for party in parties:
party.join()
- participants.add(party.data.decode('utf-8'))
+ participants.add(party.data.decode("utf-8"))
assert set(party) == participants
assert len(party) == len(participants)
for party in parties:
party.leave()
- participants.remove(party.data.decode('utf-8'))
+ participants.remove(party.data.decode("utf-8"))
assert set(party) == participants
assert len(party) == len(participants)
@@ -58,8 +57,9 @@ class KazooShallowPartyTests(KazooTestCase):
self.path = "/" + uuid.uuid4().hex
def test_party(self):
- parties = [self.client.ShallowParty(self.path, "p%s" % i)
- for i in range(5)]
+ parties = [
+ self.client.ShallowParty(self.path, "p%s" % i) for i in range(5)
+ ]
one_party = parties[0]
@@ -69,14 +69,14 @@ class KazooShallowPartyTests(KazooTestCase):
participants = set()
for party in parties:
party.join()
- participants.add(party.data.decode('utf-8'))
+ participants.add(party.data.decode("utf-8"))
assert set(party) == participants
assert len(party) == len(participants)
for party in parties:
party.leave()
- participants.remove(party.data.decode('utf-8'))
+ participants.remove(party.data.decode("utf-8"))
assert set(party) == participants
assert len(party) == len(participants)