def test_extract_balance(self): self.assertEqual(self.transaction1.balance, transclip(self.text).balance)
def test_extract_credit(self): self.assertEqual(self.transaction1.credit, transclip(self.text).credit)
def test_extract_debit(self): self.assertEqual(self.transaction1.debit, transclip(self.text).debit)
def test_extract_description(self): self.assertEqual(self.transaction1.description, transclip(self.text).description)
def test_extract_date(self): self.assertEqual(self.transaction1.date, transclip(self.text).date)
def test_extract_transaction(self): result = transclip(self.text) self.assertEqual( self.transaction1, result, ("expected:\n", str(self.transaction1), "got:\n", str(result)))