From d0d5d0340da64ee2a67d02f1e92dbbaa6084e7dd Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Mon, 6 Aug 2018 03:05:32 -0400 Subject: [PATCH] unit tests fixed --- tests/unit/wallet/test_account.py | 10 ++++++---- tests/unit/wallet/test_transaction.py | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/tests/unit/wallet/test_account.py b/tests/unit/wallet/test_account.py index bf152726f..b011d28ac 100644 --- a/tests/unit/wallet/test_account.py +++ b/tests/unit/wallet/test_account.py @@ -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(), diff --git a/tests/unit/wallet/test_transaction.py b/tests/unit/wallet/test_transaction.py index 404b24071..f4f14f227 100644 --- a/tests/unit/wallet/test_transaction.py +++ b/tests/unit/wallet/test_transaction.py @@ -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()