summaryrefslogtreecommitdiff
path: root/tests/test_parse.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_parse.py')
-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):