fix tests
This commit is contained in:
@@ -45,18 +45,18 @@ class WalletTestCase(unittest.TestCase):
|
||||
|
||||
class TestWalletStorage(WalletTestCase):
|
||||
|
||||
def test_read_dictionnary_from_file(self):
|
||||
def test_read_dictionary_from_file(self):
|
||||
|
||||
some_dict = {"a":"b", "c":"d"}
|
||||
contents = json.dumps(some_dict)
|
||||
with open(self.wallet_path, "w") as f:
|
||||
contents = f.write(contents)
|
||||
|
||||
storage = WalletStorage(self.wallet_path)
|
||||
storage = WalletStorage(self.wallet_path, manual_upgrades=True)
|
||||
self.assertEqual("b", storage.get("a"))
|
||||
self.assertEqual("d", storage.get("c"))
|
||||
|
||||
def test_write_dictionnary_to_file(self):
|
||||
def test_write_dictionary_to_file(self):
|
||||
|
||||
storage = WalletStorage(self.wallet_path)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user