diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-03-22 17:59:27 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-04-11 11:07:55 +0000 |
commit | 21b1ac1dd2d3358686cf3a8bee82fd56a4893581 (patch) | |
tree | 650e553c4713eb219f3c6823503559ff76c9f2ad /utils/python-rpc/framework | |
parent | Merge pull request #5382 (diff) | |
download | monero-21b1ac1dd2d3358686cf3a8bee82fd56a4893581.tar.xz |
functional_tests: add bans tests
Diffstat (limited to 'utils/python-rpc/framework')
-rw-r--r-- | utils/python-rpc/framework/daemon.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/utils/python-rpc/framework/daemon.py b/utils/python-rpc/framework/daemon.py index f60fe62db..714018b39 100644 --- a/utils/python-rpc/framework/daemon.py +++ b/utils/python-rpc/framework/daemon.py @@ -217,3 +217,24 @@ class Daemon(object): 'id': '0' } return self.rpc.send_json_rpc_request(get_version) + + def get_bans(self): + get_bans = { + 'method': 'get_bans', + 'params': { + }, + 'jsonrpc': '2.0', + 'id': '0' + } + return self.rpc.send_json_rpc_request(get_bans) + + def set_bans(self, bans = []): + set_bans = { + 'method': 'set_bans', + 'params': { + 'bans': bans + }, + 'jsonrpc': '2.0', + 'id': '0' + } + return self.rpc.send_json_rpc_request(set_bans) |