Beispiel #1
0
 def test_total(self):
     i = CancelInvoiceLine(cost=1.25, quantity=1.25, tva=1960)
     self.assertEqual(i.total_ht(), 1.5625)
     self.assertEqual(i.total(), 1.86875)
Beispiel #2
0
 def test_total(self):
     i = CancelInvoiceLine(cost=1.25, quantity=1.25, tva=1960)
     self.assertEqual(i.total_ht(), 1.5625)
     self.assertEqual(i.total(), 1.86875)
Beispiel #3
0
 def test_duplicate_line(self):
     line = CancelInvoiceLine(**LINE)
     dline = line.duplicate()
     for i in ("rowIndex", "cost", "tva", "description", "quantity", "unity"):
         self.assertEqual(getattr(dline, i), getattr(line, i))
Beispiel #4
0
 def test_duplicate_line(self):
     line = CancelInvoiceLine(**LINE)
     dline = line.duplicate()
     for i in ('rowIndex', 'cost', 'tva', "description", "quantity",
               "unity"):
         self.assertEqual(getattr(dline, i), getattr(line, i))