fix broken test

This commit is contained in:
ThomasV 2014-08-25 15:11:52 +02:00
parent 9f8e537a7e
commit 03f4b4c933
1 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@ import tempfile
import sys import sys
import unittest import unittest
import os import os
import json
from StringIO import StringIO from StringIO import StringIO
from lib.wallet import WalletStorage, NewWallet from lib.wallet import WalletStorage, NewWallet
@ -97,7 +98,7 @@ class TestWalletStorage(WalletTestCase):
contents = "" contents = ""
with open(path, "r") as f: with open(path, "r") as f:
contents = f.read() contents = f.read()
self.assertEqual(repr(some_dict), contents) self.assertEqual(some_dict, json.loads(contents))
class TestNewWallet(WalletTestCase): class TestNewWallet(WalletTestCase):