def assertTypeMatch(self, expected, txns): settlement = moneyutils.settle(txns) first_rec = next(iter(txns)) amount = first_rec[3] self.assertIsInstance(amount, expected)
def assertSettlement(self, expected, txns): self.assertEqual(expected, moneyutils.settle(txns))