File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -314,6 +314,20 @@ def run_test (self):
314
314
balance_nodes = [self .nodes [i ].getbalance () for i in range (3 )]
315
315
block_count = self .nodes [0 ].getblockcount ()
316
316
317
+ # Check modes:
318
+ # - True: unicode escaped as \u....
319
+ # - False: unicode directly as UTF-8
320
+ for mode in [True , False ]:
321
+ self .nodes [0 ].ensure_ascii = mode
322
+ # unicode check: Basic Multilingual Plane, Supplementary Plane respectively
323
+ for s in [u'рыба' , u'𝅘𝅥𝅯' ]:
324
+ addr = self .nodes [0 ].getaccountaddress (s )
325
+ label = self .nodes [0 ].getaccount (addr )
326
+ assert_equal (label , s )
327
+ assert (s in self .nodes [0 ].listaccounts ().keys ())
328
+ self .nodes [0 ].ensure_ascii = True # restore to default
329
+
330
+ # maintenance tests
317
331
maintenance = [
318
332
'-rescan' ,
319
333
'-reindex' ,
You can’t perform that action at this time.
0 commit comments