Пример #1
0
 def testGetTaxRateForCustomer_2(self):
     """With tax rate for customer
     """
     self.shop.taxes.invokeFactory("CustomerTax", id="customer", rate=10.0)
     tm = ITaxes(self.shop)
     rate = tm.getTaxRateForCustomer(self.product_1)
     self.assertEqual(rate, 10.0)
Пример #2
0
 def testGetTaxRateForCustomer_2(self):
     """With tax rate for customer
     """
     self.shop.taxes.invokeFactory("CustomerTax", id="customer", rate=10.0)
     tm = ITaxes(self.shop)
     rate = tm.getTaxRateForCustomer(self.product_1)
     self.assertEqual(rate, 10.0)
Пример #3
0
 def testGetTaxRateForCustomer_1(self):
     """Without tax rate for customer
     """
     tm = ITaxes(self.shop)
     rate = tm.getTaxRateForCustomer(self.product_1)
     self.assertEqual(rate, 19.0)
Пример #4
0
 def testGetTaxRateForCustomer(self):
     """
     """
     t = ITaxes(self.shop.products.product_1)
     self.assertEqual(t.getTaxRateForCustomer(), 10.0)
Пример #5
0
 def testGetTaxRateForCustomer_1(self):
     """Without tax rate for customer
     """
     tm = ITaxes(self.shop)
     rate = tm.getTaxRateForCustomer(self.product_1)
     self.assertEqual(rate, 19.0)
Пример #6
0
 def testGetTaxRateForCustomer(self):
     """
     """
     t = ITaxes(self.shop.products.product_1)
     self.assertEqual(t.getTaxRateForCustomer(), 10.0)