update tests

This commit is contained in:
Lex Berezhny 2020-07-21 20:56:50 -04:00
parent 8996aafe0d
commit f9dc590100
2 changed files with 6 additions and 6 deletions

View file

@ -132,7 +132,7 @@ class TestAccount(AsyncioTestCase):
async def test_load_and_save_account(self): async def test_load_and_save_account(self):
account_data = { account_data = {
'name': 'Main Account', 'name': 'Main Account',
'modified_on': 123.456, 'modified_on': 123,
'seed': 'seed':
"carbon smart garage balance margin twelve chest sword toast envelope bottom stomac" "carbon smart garage balance margin twelve chest sword toast envelope bottom stomac"
"h absent", "h absent",
@ -183,7 +183,7 @@ class TestAccount(AsyncioTestCase):
def test_merge_diff(self): def test_merge_diff(self):
account_data = { account_data = {
'name': 'My Account', 'name': 'My Account',
'modified_on': 123.456, 'modified_on': 123,
'seed': 'seed':
"carbon smart garage balance margin twelve chest sword toast envelope bottom stomac" "carbon smart garage balance margin twelve chest sword toast envelope bottom stomac"
"h absent", "h absent",
@ -203,7 +203,7 @@ class TestAccount(AsyncioTestCase):
account = Account.from_dict(self.ledger, Wallet(), account_data) account = Account.from_dict(self.ledger, Wallet(), account_data)
self.assertEqual(account.name, 'My Account') self.assertEqual(account.name, 'My Account')
self.assertEqual(account.modified_on, 123.456) self.assertEqual(account.modified_on, 123)
self.assertEqual(account.change.gap, 5) self.assertEqual(account.change.gap, 5)
self.assertEqual(account.change.maximum_uses_per_address, 2) self.assertEqual(account.change.maximum_uses_per_address, 2)
self.assertEqual(account.receiving.gap, 5) self.assertEqual(account.receiving.gap, 5)
@ -366,7 +366,7 @@ class TestSingleKeyAccount(AsyncioTestCase):
async def test_load_and_save_account(self): async def test_load_and_save_account(self):
account_data = { account_data = {
'name': 'My Account', 'name': 'My Account',
'modified_on': 123.456, 'modified_on': 123,
'seed': 'seed':
"carbon smart garage balance margin twelve chest sword toast envelope bottom stomac" "carbon smart garage balance margin twelve chest sword toast envelope bottom stomac"
"h absent", "h absent",

View file

@ -38,7 +38,7 @@ class TestWalletCreation(AsyncioTestCase):
'certificates': {}, 'certificates': {},
'name': 'An Account', 'name': 'An Account',
'ledger': 'lbc_mainnet', 'ledger': 'lbc_mainnet',
'modified_on': 123.456, 'modified_on': 123,
'seed': 'seed':
"carbon smart garage balance margin twelve chest sword toast envelope bottom stomac" "carbon smart garage balance margin twelve chest sword toast envelope bottom stomac"
"h absent", "h absent",
@ -62,7 +62,7 @@ class TestWalletCreation(AsyncioTestCase):
wallet = Wallet.from_storage(storage, self.manager) wallet = Wallet.from_storage(storage, self.manager)
self.assertEqual(wallet.name, 'Main Wallet') self.assertEqual(wallet.name, 'Main Wallet')
self.assertEqual( self.assertEqual(
hexlify(wallet.hash), b'a75913d2e7339c1a9ac0c89d621a4e10fd3a40dc3560dc01f4cf4ada0a0b05b8' hexlify(wallet.hash), b'869acc4660dde0f13784ed743796adf89562cdf79fdfc9e5c6dbea98d62ccf90'
) )
self.assertEqual(len(wallet.accounts), 1) self.assertEqual(len(wallet.accounts), 1)
account = wallet.default_account account = wallet.default_account