Exemple #1
0
 def testThatReturnedAccountAlsoHasAStatement(self):
     stmtrs = BeautifulStoneSoup(self.input)
     account = OfxParser.parseStmtrs(stmtrs.find('stmtrs'), AccountType.Bank)
     self.assertTrue(hasattr(account, 'statement'))
Exemple #2
0
 def testThatParseStmtrsReturnsAnAccount(self):
     stmtrs = BeautifulStoneSoup(self.input)
     account = OfxParser.parseStmtrs(stmtrs.find('stmtrs'), AccountType.Bank)
     self.assertEquals('12300 000012345678', account.number)
     self.assertEquals('160000100', account.routing_number)
     self.assertEquals('CHECKING', account.account_type)