summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndrew Shadura <andrewsh@debian.org>2016-10-19 18:48:59 +0200
committerAndrew Shadura <andrewsh@debian.org>2016-10-19 18:48:59 +0200
commitd8736ad37771257f5e8090072fccfbac90098633 (patch)
tree3b3381d36a5c836030e4143a9916b21223298065 /tests
parentd8216aeb9c12ea81d9941edc6eff39be32c24aca (diff)
Imported 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):