Skip to content

Commit

Permalink
Added integration test to check the retrieval of multiple subkeys
Browse files Browse the repository at this point in the history
  • Loading branch information
jplana committed Sep 30, 2013
1 parent abc2713 commit b8394fc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/etcd/tests/integration/test_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,14 @@ def test_get_set_delete(self):
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):

Expand Down

0 comments on commit b8394fc

Please sign in to comment.