unit tests fixed
This commit is contained in:
parent
f79a49bbf4
commit
d0d5d0340d
2 changed files with 12 additions and 8 deletions
|
@ -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(),
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue