summaryrefslogtreecommitdiff
path: root/tests/test_set_config.py
diff options
context:
space:
mode:
authorJeffrey Zhang <zhang.lei.fly@gmail.com>2016-01-08 19:18:56 +0800
committerJeffrey Zhang <zhang.lei.fly@gmail.com>2016-01-13 13:47:49 +0800
commit67e4607d43eb703bb4e5ac94fa4adf9fe43d31b8 (patch)
tree59894c801f32bcfc52d134647347610df1588415 /tests/test_set_config.py
parent4bdf8bfa84ca5bdaa65713d61eaa8c9527aac4d6 (diff)
downloadkolla-67e4607d43eb703bb4e5ac94fa4adf9fe43d31b8.tar.gz
kolla-67e4607d43eb703bb4e5ac94fa4adf9fe43d31b8.zip
Add py27 py34 pypy unittest
Change-Id: Iaf58463bd156924839062b8284a2d7151a153db5
Diffstat (limited to 'tests/test_set_config.py')
-rw-r--r--tests/test_set_config.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_set_config.py b/tests/test_set_config.py
index 7092895c5..43884bdb3 100644
--- a/tests/test_set_config.py
+++ b/tests/test_set_config.py
@@ -95,7 +95,7 @@ class ZkCopyTest(testscenarios.WithScenarios, base.BaseTestCase):
temp_dir = tempfile.mkdtemp()
for path in self.in_paths:
- self.client.create(path, 'one', makepath=True)
+ self.client.create(path, b'one', makepath=True)
set_configs.zk_copy_tree(self.client, self.in_subtree, temp_dir)
for expect in self.expect_paths:
expect.insert(0, temp_dir)
@@ -112,11 +112,11 @@ class ZkExistsTest(base.BaseTestCase):
self.addCleanup(self.client.close)
def test_path_exists_no(self):
- self.client.create('/test/path/thing', 'one', makepath=True)
+ self.client.create('/test/path/thing', b'one', makepath=True)
self.assertFalse(set_configs.zk_path_exists(self.client,
'/test/missing/thing'))
def test_path_exists_yes(self):
- self.client.create('/test/path/thing', 'one', makepath=True)
+ self.client.create('/test/path/thing', b'one', makepath=True)
self.assertTrue(set_configs.zk_path_exists(self.client,
'/test/path/thing'))