URI: 
       tfix tests for json storage - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit dbca0a0e83fc107f2a84986996809d8f2a500a8a
   DIR parent 048eb01300dafd8790eee7e0ec7d939daa54361f
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Thu, 28 Feb 2019 10:37:48 +0100
       
       fix tests for json storage
       
       Diffstat:
         M electrum/tests/test_wallet.py       |       8 ++++++--
       
       1 file changed, 6 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/electrum/tests/test_wallet.py b/electrum/tests/test_wallet.py
       t@@ -14,6 +14,7 @@ from electrum.wallet import Abstract_Wallet
        from electrum.exchange_rate import ExchangeBase, FxThread
        from electrum.util import TxMinedInfo
        from electrum.bitcoin import COIN
       +from electrum.json_db import JsonDB
        
        from . import SequentialTestCase
        
       t@@ -74,7 +75,9 @@ class TestWalletStorage(WalletTestCase):
        
                with open(self.wallet_path, "r") as f:
                    contents = f.read()
       -        self.assertEqual(some_dict, json.loads(contents))
       +        d = json.loads(contents)
       +        for key, value in some_dict.items():
       +            self.assertEqual(d[key], value)
        
        class FakeExchange(ExchangeBase):
            def __init__(self, rate):
       t@@ -95,7 +98,8 @@ class FakeWallet:
            def __init__(self, fiat_value):
                super().__init__()
                self.fiat_value = fiat_value
       -        self.transactions = self.verified_tx = {'abc': 'Tx'}
       +        self.db = JsonDB("{}", manual_upgrades=True)
       +        self.db.transactions = self.db.verified_tx = {'abc':'Tx'}
        
            def get_tx_height(self, txid):
                # because we use a current timestamp, and history is empty,