def test_read_dictionnary_from_file(self): some_dict = {"a": "b", "c": "d"} contents = repr(some_dict) with open(self.wallet_path, "w") as f: contents = f.write(contents) storage = WalletStorage(self.wallet_path) self.assertEqual("b", storage.get("a")) self.assertEqual("d", storage.get("c"))
def test_read_dictionnary_from_file(self): some_dict = {"a":"b", "c":"d"} contents = repr(some_dict) with open(self.wallet_path, "w") as f: contents = f.write(contents) storage = WalletStorage(self.wallet_path) self.assertEqual("b", storage.get("a")) self.assertEqual("d", storage.get("c"))
def test_read_dictionnary_from_file(self): path = os.path.join(self.user_dir, "somewallet") self.fake_config.set("wallet_path", path) some_dict = {"a": "b", "c": "d"} contents = repr(some_dict) with open(path, "w") as f: contents = f.write(contents) storage = WalletStorage(self.fake_config) self.assertEqual("b", storage.get("a")) self.assertEqual("d", storage.get("c"))
def test_read_dictionnary_from_file(self): path = os.path.join(self.user_dir, "somewallet") self.fake_config.set("wallet_path", path) some_dict = {"a":"b", "c":"d"} contents = repr(some_dict) with open(path, "w") as f: contents = f.write(contents) storage = WalletStorage(self.fake_config) self.assertEqual("b", storage.get("a")) self.assertEqual("d", storage.get("c"))