summaryrefslogtreecommitdiff
path: root/kazoo/tests/test_client.py
diff options
context:
space:
mode:
Diffstat (limited to 'kazoo/tests/test_client.py')
-rw-r--r--kazoo/tests/test_client.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/kazoo/tests/test_client.py b/kazoo/tests/test_client.py
index 9f0f9d4..b081542 100644
--- a/kazoo/tests/test_client.py
+++ b/kazoo/tests/test_client.py
@@ -887,10 +887,13 @@ class TestClient(KazooTestCase):
def test_get_acls(self):
from kazoo.security import make_digest_acl
- acl = make_digest_acl('user', 'pass', all=True)
+ user = 'user'
+ passw = 'pass'
+ acl = make_digest_acl(user, passw, all=True)
client = self.client
try:
client.create('/a', acl=[acl])
+ client.add_auth('digest', '{}:{}'.format(user, passw))
self.assertTrue(acl in client.get_acls('/a')[0])
finally:
client.delete('/a')
@@ -901,11 +904,14 @@ class TestClient(KazooTestCase):
def test_set_acls(self):
from kazoo.security import make_digest_acl
- acl = make_digest_acl('user', 'pass', all=True)
+ user = 'user'
+ passw = 'pass'
+ acl = make_digest_acl(user, passw, all=True)
client = self.client
client.create('/a')
try:
client.set_acls('/a', [acl])
+ client.add_auth('digest', '{}:{}'.format(user, passw))
self.assertTrue(acl in client.get_acls('/a')[0])
finally:
client.delete('/a')