summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndrew Shadura <andrewsh@debian.org>2016-10-19 18:51:11 +0200
committerAndrew Shadura <andrewsh@debian.org>2016-10-19 18:51:11 +0200
commit0ca0be906e54d171cb5ce7a5a9b49f6a7278fa18 (patch)
treee17da6184277e186c7aebbca0604ccbe3b46256f /tests
parent5c6e16a16a2d7c17188cfe6bcccdf62f276c203c (diff)
parentd8736ad37771257f5e8090072fccfbac90098633 (diff)
Merge tag 'upstream/0.15+git20161013'
Upstream version 0.15+git20161013
Diffstat (limited to 'tests')
-rw-r--r--tests/test_parse.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_parse.py b/tests/test_parse.py
index 476b28e..6d3ab63 100644
--- a/tests/test_parse.py
+++ b/tests/test_parse.py
@@ -633,6 +633,16 @@ class TestFidelityInvestmentStatement(TestCase):
ofx = OfxParser.parse(open_file('fidelity.ofx'))
self.assertEquals(len(ofx.security_list), 7)
+ def testBalanceList(self):
+ ofx = OfxParser.parse(open_file('fidelity.ofx'))
+ self.assertEquals(len(ofx.account.statement.balance_list), 18)
+ self.assertEquals(ofx.account.statement.balance_list[0].name, 'Networth')
+ self.assertEquals(ofx.account.statement.balance_list[0].description, 'The net market value of all long and short positions in the account')
+ self.assertEquals(ofx.account.statement.balance_list[0].value, Decimal('32993.79'))
+ self.assertEquals(ofx.account.statement.available_cash, Decimal('18073.98'))
+ self.assertEquals(ofx.account.statement.margin_balance, Decimal('0'))
+ self.assertEquals(ofx.account.statement.short_balance, Decimal('0'))
+ self.assertEquals(ofx.account.statement.buy_power, Decimal('0'))
class Test401InvestmentStatement(TestCase):
def testTransferAggregate(self):