unit tests fixed

This commit is contained in:
Lex Berezhny 2018-08-06 03:05:32 -04:00 committed by Jack Robison
parent f79a49bbf4
commit d0d5d0340d
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2
2 changed files with 12 additions and 8 deletions

View file

@ -36,10 +36,12 @@ class TestAccount(unittest.TestCase):
@defer.inlineCallbacks
def test_generate_account_from_seed(self):
account = Account.from_seed(
self.ledger,
u"carbon smart garage balance margin twelve chest sword toast envelope bottom stomach ab"
u"sent", u"lbryum", {}
account = Account.from_dict(
self.ledger, {
"seed":
"carbon smart garage balance margin twelve chest sword toas"
"t envelope bottom stomach absent"
}
)
self.assertEqual(
account.private_key.extended_key_string(),

View file

@ -221,10 +221,12 @@ class TestTransactionSigning(unittest.TestCase):
@defer.inlineCallbacks
def test_sign(self):
account = self.ledger.account_class.from_seed(
self.ledger,
u"carbon smart garage balance margin twelve chest sword toast envelope bottom stomach ab"
u"sent", u"lbryum", {}
account = self.ledger.account_class.from_dict(
self.ledger, {
"seed":
"carbon smart garage balance margin twelve chest sword toas"
"t envelope bottom stomach absent"
}
)
yield account.ensure_address_gap()