mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 21:12:48 +01:00
[tests] fix TestNode.__getattr__() method
This commit is contained in:
parent
77546a3182
commit
b86c1cd208
@ -63,10 +63,10 @@ class TestNode():
|
|||||||
self.url = None
|
self.url = None
|
||||||
self.log = logging.getLogger('TestFramework.node%d' % i)
|
self.log = logging.getLogger('TestFramework.node%d' % i)
|
||||||
|
|
||||||
def __getattr__(self, *args, **kwargs):
|
def __getattr__(self, name):
|
||||||
"""Dispatches any unrecognised messages to the RPC connection."""
|
"""Dispatches any unrecognised messages to the RPC connection."""
|
||||||
assert self.rpc_connected and self.rpc is not None, "Error: no RPC connection"
|
assert self.rpc_connected and self.rpc is not None, "Error: no RPC connection"
|
||||||
return self.rpc.__getattr__(*args, **kwargs)
|
return getattr(self.rpc, name)
|
||||||
|
|
||||||
def start(self, extra_args=None, stderr=None):
|
def start(self, extra_args=None, stderr=None):
|
||||||
"""Start the node."""
|
"""Start the node."""
|
||||||
|
Loading…
Reference in New Issue
Block a user