def test_total(self): i = InvoiceLine(cost=1.25, quantity=1.25, tva=1960) self.assertEqual(i.total_ht(), 1.5625) self.assertEqual(i.total(), 1.86875)