@@ -36,6 +36,10 @@ def run_test(self):
3636 assert_raises_rpc_error (- 8 , "Invalid payment count, must be more than zero." , self .nodes [0 ].preparebudget ,
3737 name , scheme + url , 0 , nextsuperblock , address , cycleamount )
3838
39+ self .log .info ("Test with invalid (21) cycles" )
40+ assert_raises_rpc_error (- 8 , "Invalid payment count, must be <= 20" , self .nodes [0 ].preparebudget ,
41+ name , scheme + url , 21 , nextsuperblock , address , cycleamount )
42+
3943 self .log .info ("Test with invalid block start" )
4044 assert_raises_rpc_error (- 8 , "Invalid block start" , self .nodes [0 ].preparebudget ,
4145 name , scheme + url , numcycles , nextsuperblock - 12 , address , cycleamount )
@@ -47,8 +51,9 @@ def run_test(self):
4751 name , scheme + url , numcycles , nextsuperblock , "DBREvBPNQguwuC4YMoCG5FoH1sA2YntvZm" , cycleamount )
4852
4953 self .log .info ("Test with too low amount" )
50- assert_raises_rpc_error (- 8 , "Invalid amount - Payment of 9.00 is less than minimum 10 PIV allowed" , self .nodes [0 ].preparebudget ,
51- name , scheme + url , numcycles , nextsuperblock , address , 9 )
54+ invalid_amt = 9.99999999
55+ assert_raises_rpc_error (- 8 , "Invalid amount - Payment of %.8f is less than minimum 10 PIV allowed" % invalid_amt , self .nodes [0 ].preparebudget ,
56+ name , scheme + url , numcycles , nextsuperblock , address , invalid_amt )
5257
5358 self .log .info ("Test with too high amount" )
5459 assert_raises_rpc_error (- 8 , "Invalid amount - Payment of 648001.00 more than max of 648000.00" , self .nodes [0 ].preparebudget ,
0 commit comments