summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJose Plana <jplana@gmail.com>2013-09-30 21:03:13 +0200
committerJose Plana <jplana@gmail.com>2013-09-30 21:32:24 +0200
commitb8394fcc7e2015b12e19566aec8bdc31ae21ae81 (patch)
tree5fc5cb2f9c192e7274b8b0b71caa44fde505a95a /src
parentabc27137cd74e9838d2f80d9935c25ccc9324a4d (diff)
Added integration test to check the retrieval of multiple subkeys
Diffstat (limited to 'src')
-rw-r--r--src/etcd/tests/integration/test_simple.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/etcd/tests/integration/test_simple.py b/src/etcd/tests/integration/test_simple.py
index a9938d3..8c9fb4d 100644
--- a/src/etcd/tests/integration/test_simple.py
+++ b/src/etcd/tests/integration/test_simple.py
@@ -98,6 +98,14 @@ class TestSimple(EtcdIntegrationTest):
except KeyError, e:
pass
+ def test_retrieve_subkeys(self):
+ """ INTEGRATION: retrieve multiple subkeys """
+ set_result = self.client.set('/subtree/test_set', 'test-key1')
+ set_result = self.client.set('/subtree/test_set1', 'test-key2')
+ set_result = self.client.set('/subtree/test_set2', 'test-key3')
+ get_result = self.client.get('/subtree')
+ result = [subkey.value for subkey in get_result]
+ self.assertEquals(['test-key1', 'test-key2', 'test-key3'], result)
class TestErrors(EtcdIntegrationTest):