From 3971613285bb7ba39fe0f3aeb13449a5a2980d37 Mon Sep 17 00:00:00 2001 From: Konstantin Akimov Date: Sun, 23 Jun 2024 02:38:42 +0700 Subject: [PATCH] feat: functional tests for RPC getgovernanceinfo --- test/functional/feature_governance.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/functional/feature_governance.py b/test/functional/feature_governance.py index 420419cbed..c507fce80d 100755 --- a/test/functional/feature_governance.py +++ b/test/functional/feature_governance.py @@ -90,6 +90,15 @@ class DashGovernanceTest (DashTestFramework): return count == len(self.nodes) def run_test(self): + governance_info = self.nodes[0].getgovernanceinfo() + assert_equal(governance_info['governanceminquorum'], 1) + assert_equal(governance_info['proposalfee'], 1) + assert_equal(governance_info['superblockcycle'], 20) + assert_equal(governance_info['superblockmaturitywindow'], 10) + assert_equal(governance_info['lastsuperblock'], 120) + assert_equal(governance_info['nextsuperblock'], governance_info['lastsuperblock'] + governance_info['superblockcycle']) + assert_equal(governance_info['governancebudget'], 1000) + map_vote_outcomes = { 0: "none", 1: "yes",