[tests] [wallet] Add wallet endpoint support to authproxy

This commit is contained in:
John Newbery 2017-07-13 10:53:42 -04:00 committed by Jonas Schnelli
parent 76603b1325
commit 979d0b8a65
No known key found for this signature in database
GPG key ID: 1EB776BB03C7922D
2 changed files with 5 additions and 0 deletions

View file

@ -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)

View file

@ -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):
"""