Пример #1
0
 def test_explicit_currency(self):
     qiftext = textwrap.dedent('''\
     !Type:Bank
     D01/25/2007
     T417.93
     ^
     ''')
     converter = QifConverter(qiftext, curdef='GBP')
     ofx102 = converter.to_ofx102()
     self.assertTrue(ofx102.find('<CURDEF>GBP') != -1)
 def test_explicit_currency(self):
     qiftext = textwrap.dedent('''\
     !Type:Bank
     D01/25/2007
     T417.93
     ^
     ''')
     converter = QifConverter(qiftext, curdef='GBP')
     ofx102 = converter.to_ofx102()
     self.assertTrue(ofx102.find('<CURDEF>GBP') != -1)
Пример #3
0
 def test_found_currency(self):
     qiftext = textwrap.dedent('''\
     !Type:Bank
     D01/25/2007
     T417.93
     ^EUR
     ''')
     converter = QifConverter(qiftext)
     ofx102 = converter.to_ofx102()
     self.assertTrue(ofx102.find('<CURDEF>EUR') != -1)
 def test_found_currency(self):
     qiftext = textwrap.dedent('''\
     !Type:Bank
     D01/25/2007
     T417.93
     ^EUR
     ''')
     converter = QifConverter(qiftext)
     ofx102 = converter.to_ofx102()
     self.assertTrue(ofx102.find('<CURDEF>EUR') != -1)