Exemplo n.º 1
0
 def test_extract_balance(self):
     self.assertEqual(self.transaction1.balance, transclip(self.text).balance)
Exemplo n.º 2
0
 def test_extract_credit(self):
     self.assertEqual(self.transaction1.credit, transclip(self.text).credit)
Exemplo n.º 3
0
 def test_extract_debit(self):
     self.assertEqual(self.transaction1.debit, transclip(self.text).debit)
Exemplo n.º 4
0
 def test_extract_description(self):
     self.assertEqual(self.transaction1.description, transclip(self.text).description)
Exemplo n.º 5
0
 def test_extract_date(self):
     self.assertEqual(self.transaction1.date, transclip(self.text).date)
Exemplo n.º 6
0
 def test_extract_transaction(self):
     result = transclip(self.text)
     self.assertEqual(
          self.transaction1,
          result,
          ("expected:\n", str(self.transaction1), "got:\n", str(result)))