mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-23 21:34:45 +00:00
test: test utf-8 for labels in wallet
This commit is contained in:
parent
a406fcb6ca
commit
6bbb4ef399
@ -314,6 +314,20 @@ class WalletTest (BitcoinTestFramework):
|
|||||||
balance_nodes = [self.nodes[i].getbalance() for i in range(3)]
|
balance_nodes = [self.nodes[i].getbalance() for i in range(3)]
|
||||||
block_count = self.nodes[0].getblockcount()
|
block_count = self.nodes[0].getblockcount()
|
||||||
|
|
||||||
|
# Check modes:
|
||||||
|
# - True: unicode escaped as \u....
|
||||||
|
# - False: unicode directly as UTF-8
|
||||||
|
for mode in [True, False]:
|
||||||
|
self.nodes[0].ensure_ascii = mode
|
||||||
|
# unicode check: Basic Multilingual Plane, Supplementary Plane respectively
|
||||||
|
for s in [u'рыба', u'𝅘𝅥𝅯']:
|
||||||
|
addr = self.nodes[0].getaccountaddress(s)
|
||||||
|
label = self.nodes[0].getaccount(addr)
|
||||||
|
assert_equal(label, s)
|
||||||
|
assert(s in self.nodes[0].listaccounts().keys())
|
||||||
|
self.nodes[0].ensure_ascii = True # restore to default
|
||||||
|
|
||||||
|
# maintenance tests
|
||||||
maintenance = [
|
maintenance = [
|
||||||
'-rescan',
|
'-rescan',
|
||||||
'-reindex',
|
'-reindex',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user