Пример #1
0
 def test_creation(self):
     il = InvoiceLine()
     il.quantity = 11
     il.price = 2
     il.item_name = 'test'
     il.tax_percent = 0.21
     il.tax_category = "S"
     assert il.is_valid()
Пример #2
0
 def test_initialization(self):
     il = InvoiceLine(quantity=11,
                      unit_code="EA",
                      price=2,
                      item_name='test',
                      currency="EUR",
                      tax_percent=0.21,
                      tax_category="S")
     assert il.is_valid()
     assert il.currency == "EUR"