def test_Journal(): j = Journal() e = loadfromjson(sample_json) j.append(e) dr, cr = j.getTAccount(u"現金") assert cr[1439517320] == 100000
def test_loadfromjson(): j = loadfromjson(sample_json) assert j["debit"][u"建物"] == 100000 assert j["credit"][u"現金"] == 100000 assert j["issuer"]== "*****@*****.**" assert j["date"] == 1439517320