forked from LBRYCommunity/lbry-sdk
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
|
@defer.inlineCallbacks
|
||||||
def test_generate_account_from_seed(self):
|
def test_generate_account_from_seed(self):
|
||||||
account = Account.from_seed(
|
account = Account.from_dict(
|
||||||
self.ledger,
|
self.ledger, {
|
||||||
u"carbon smart garage balance margin twelve chest sword toast envelope bottom stomach ab"
|
"seed":
|
||||||
u"sent", u"lbryum", {}
|
"carbon smart garage balance margin twelve chest sword toas"
|
||||||
|
"t envelope bottom stomach absent"
|
||||||
|
}
|
||||||
)
|
)
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
account.private_key.extended_key_string(),
|
account.private_key.extended_key_string(),
|
||||||
|
|
|
@ -221,10 +221,12 @@ class TestTransactionSigning(unittest.TestCase):
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def test_sign(self):
|
def test_sign(self):
|
||||||
account = self.ledger.account_class.from_seed(
|
account = self.ledger.account_class.from_dict(
|
||||||
self.ledger,
|
self.ledger, {
|
||||||
u"carbon smart garage balance margin twelve chest sword toast envelope bottom stomach ab"
|
"seed":
|
||||||
u"sent", u"lbryum", {}
|
"carbon smart garage balance margin twelve chest sword toas"
|
||||||
|
"t envelope bottom stomach absent"
|
||||||
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
yield account.ensure_address_gap()
|
yield account.ensure_address_gap()
|
||||||
|
|
Loading…
Add table
Reference in a new issue