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_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)