def testGetPriceForCustomer(self): """ """ p = IPrices(self.item1) self.assertEqual("%.2f" % p.getPriceForCustomer(), "44.00") p = IPrices(self.item2) self.assertEqual(p.getPriceForCustomer(), 57.0)
def testGetPriceForCustomer(self): """ """ p = IPrices(self.order) self.assertEqual("%.2f" % p.getPriceForCustomer(), "151.00")
def testGetPriceForCustomer(self): """ """ pp = IPrices(self.item1) self.assertEqual(pp.getPriceForCustomer(), 4536.0)
def testGetPriceForCustomer(self): """ """ p = IPrices(self.cart) # products + shipping (no payment, atm) self.assertEqual(p.getPriceForCustomer(), 111.00)
def testGetPriceForCustomer(self): """ """ p = IPrices(self.shop.products.product_1) self.assertEqual("%.2f" % p.getPriceForCustomer(), "20.34")
def testGetPriceForCustomer(self): """Customer has same tax rate as default """ p = IPrices(self.shop.products.product_1) self.assertEqual("%.2f" % p.getPriceForCustomer(), "22.00")