diff options
author | John Newbery <john@johnnewbery.com> | 2017-07-13 10:53:42 -0400 |
---|---|---|
committer | Jonas Schnelli <dev@jonasschnelli.ch> | 2017-07-17 17:42:21 +0200 |
commit | 979d0b8a6533de58b6352666d90fff33841db63d (patch) | |
tree | cb4bb336fee10fb319d67a88dfa5385e75686217 /test/functional | |
parent | 76603b132513266065235d686b82aaa6a2968303 (diff) | |
download | bitcoin-979d0b8a6533de58b6352666d90fff33841db63d.tar.xz |
[tests] [wallet] Add wallet endpoint support to authproxy
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/test_framework/authproxy.py | 3 | ||||
-rw-r--r-- | test/functional/test_framework/coverage.py | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/test_framework/authproxy.py b/test/functional/test_framework/authproxy.py index dfcc524313..b3671cbdc5 100644 --- a/test/functional/test_framework/authproxy.py +++ b/test/functional/test_framework/authproxy.py @@ -191,3 +191,6 @@ class AuthServiceProxy(object): else: log.debug("<-- [%.6f] %s"%(elapsed,responsedata)) return response + + def __truediv__(self, relative_uri): + return AuthServiceProxy("{}/{}".format(self.__service_url, relative_uri), self._service_name, connection=self.__conn) diff --git a/test/functional/test_framework/coverage.py b/test/functional/test_framework/coverage.py index 3f87ef91f6..227b1a17af 100644 --- a/test/functional/test_framework/coverage.py +++ b/test/functional/test_framework/coverage.py @@ -56,6 +56,8 @@ class AuthServiceProxyWrapper(object): def url(self): return self.auth_service_proxy_instance.url + def __truediv__(self, relative_uri): + return AuthServiceProxyWrapper(self.auth_service_proxy_instance / relative_uri) def get_filename(dirname, n_node): """ |