Exemplo n.º 1
0
 def setUp(self):
     self.port = 9486
     self.server = MockOfxServer(port=self.port)
     self.mockurl = "http://localhost:" + str(self.port) + "/"
     self.institution = Institution(ofx_org="Test Bank",
                                    ofx_fid="99999",
                                    ofx_url=self.mockurl)
     self.checking_account = Account(acct_number="1122334455",
                                     aba_number="12345678",
                                     acct_type="Checking",
                                     institution=self.institution)
     self.savings_account = Account(acct_number="1122334455",
                                    aba_number="12345678",
                                    acct_type="Savings",
                                    institution=self.institution)
     self.creditcard_account = Account(acct_number="1122334455",
                                       aba_number="12345678",
                                       acct_type="Credit Card",
                                       institution=self.institution)
     self.username = "******"
     self.password = "******"
     self.client = Client()
     self.checking_stmt = get_checking_stmt().decode('utf-8')
     self.savings_stmt = get_savings_stmt().decode('utf-8')
     self.creditcard_stmt = get_creditcard_stmt().decode('utf-8')