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)
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)
def testGetTaxRateForCustomer_1(self): """Without tax rate for customer """ tm = ITaxes(self.shop) rate = tm.getTaxRateForCustomer(self.product_1) self.assertEqual(rate, 19.0)
def testGetTaxRateForCustomer(self): """ """ t = ITaxes(self.shop.products.product_1) self.assertEqual(t.getTaxRateForCustomer(), 10.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)
def testGetTaxRateForCustomer(self): """ """ t = ITaxes(self.shop.products.product_1) self.assertEqual(t.getTaxRateForCustomer(), 10.0)