예제 #1
0
    def testGetPriceForCustomer(self):
        """
        """
        p = IPrices(self.item1)
        self.assertEqual("%.2f" % p.getPriceForCustomer(), "44.00")

        p = IPrices(self.item2)
        self.assertEqual(p.getPriceForCustomer(), 57.0)
예제 #2
0
    def testGetPriceGross(self):
        """
        """
        p = IPrices(self.item1)
        self.assertEqual(p.getPriceGross(), 44.0)

        p = IPrices(self.item2)
        self.assertEqual(p.getPriceGross(), 57.0)
예제 #3
0
    def testGetPriceNet(self):
        """
        """
        p = IPrices(self.item1)
        price_net = "%.2f" % p.getPriceNet()
        self.assertEqual(price_net, "36.97")

        p = IPrices(self.item2)
        price_net = "%.2f" % p.getPriceNet()
        self.assertEqual(price_net, "47.90")
예제 #4
0
    def testGetPriceForCustomer(self):
        """
        """
        p = IPrices(self.item1)
        self.assertEqual("%.2f" % p.getPriceForCustomer(), "44.00")

        p = IPrices(self.item2)
        self.assertEqual(p.getPriceForCustomer(), 57.0)
예제 #5
0
    def testGetPriceGross(self):
        """
        """
        p = IPrices(self.item1)
        self.assertEqual(p.getPriceGross(), 44.0)

        p = IPrices(self.item2)
        self.assertEqual(p.getPriceGross(), 57.0)
예제 #6
0
    def testGetPriceNet(self):
        """
        """
        p = IPrices(self.item1)
        price_net = "%.2f" % p.getPriceNet()
        self.assertEqual(price_net, "36.97")

        p = IPrices(self.item2)
        price_net = "%.2f" % p.getPriceNet()
        self.assertEqual(price_net, "47.90")
예제 #7
0
 def testGetPriceForCustomer(self):
     """
     """
     p = IPrices(self.order)
     self.assertEqual("%.2f" % p.getPriceForCustomer(), "151.00")
예제 #8
0
 def testGetPriceGross(self):
     """
     """
     p = IPrices(self.cart)
     self.assertEqual(p.getPriceGross(), 211.00)
예제 #9
0
 def testGetPriceForCustomer(self):
     """
     """
     p = IPrices(self.cart)
     self.assertEqual(p.getPriceForCustomer(), 211.00)
 def testGetPriceForCustomer(self):
     """
     """
     p = IPrices(self.shop.products.product_1)
     self.assertEqual("%.2f" % p.getPriceForCustomer(), "20.34")
예제 #11
0
 def testGetPriceNet(self):
     """
     """
     pp = IPrices(self.item1)
     price_net = "%.2f" % pp.getPriceNet()
     self.assertEqual(price_net, "3811.76")
예제 #12
0
 def testGetPriceNet(self):
     """
     """
     p = IPrices(self.shop.products.product_1)
     self.assertEqual("%.2f" % p.getPriceNet(), "18.49")
예제 #13
0
 def testGetPriceForCustomer(self):
     """
     """
     p = IPrices(self.cart)
     self.assertEqual(p.getPriceForCustomer(), 211.00)
예제 #14
0
 def testGetPriceNet(self):
     """
     """
     p = IPrices(self.cart)
     price_net = "%.2f" % p.getPriceNet()
     self.assertEqual(price_net, "177.31")
예제 #15
0
 def testGetPriceNet(self):
     """
     """
     p = IPrices(self.cart)
     price_net = "%.2f" % p.getPriceNet()
     self.assertEqual(price_net, "177.31")
예제 #16
0
 def testGetPriceGross(self):
     """
     """
     pp = IPrices(self.item1)
     self.assertEqual(pp.getPriceGross(), 4536.0)
예제 #17
0
 def testGetPriceNet(self):
     """
     """
     pp = IPrices(self.item1)
     price_net = "%.2f" % pp.getPriceNet()
     self.assertEqual(price_net, "3811.76")
예제 #18
0
 def testGetPriceForCustomer(self):
     """
     """
     pp = IPrices(self.item1)
     self.assertEqual(pp.getPriceForCustomer(), 4536.0)
 def testGetPriceGross(self):
     """
     """
     p = IPrices(self.shop.products.product_1)
     self.assertEqual(p.getPriceGross(), 22.0)
 def testGetPriceNet(self):
     """
     """
     p = IPrices(self.shop.products.product_1)
     self.assertEqual("%.2f" % p.getPriceNet(), "18.49")
예제 #21
0
 def testGetPriceForCustomer(self):
     """Customer has same tax rate as default
     """
     p = IPrices(self.shop.products.product_1)
     self.assertEqual("%.2f" % p.getPriceForCustomer(), "22.00")
예제 #22
0
 def testGetPriceGross(self):
     """
     """
     p = IPrices(self.order)
     self.assertEqual("%.2f" % p.getPriceGross(), "151.00")
예제 #23
0
 def testGetPriceForCustomer(self):
     """
     """
     p = IPrices(self.shop.products.product_1)
     self.assertEqual("%.2f" % p.getPriceForCustomer(), "20.34")
예제 #24
0
 def testGetPriceGross(self):
     """
     """
     p = IPrices(self.order)
     self.assertEqual("%.2f" % p.getPriceGross(), "151.00")
예제 #25
0
 def testGetPriceGross(self):
     """
     """
     p = IPrices(self.shop.products.product_1)
     self.assertEqual(p.getPriceGross(), 22.0)
예제 #26
0
 def testGetPriceGross(self):
     """
     """
     pp = IPrices(self.item1)
     self.assertEqual(pp.getPriceGross(), 4536.0)
예제 #27
0
 def testGetPriceGross(self):
     """
     """
     p = IPrices(self.cart)
     self.assertEqual(p.getPriceGross(), 211.00)
 def testGetPriceForCustomer(self):
     """Customer has same tax rate as default
     """
     p = IPrices(self.shop.products.product_1)
     self.assertEqual("%.2f" % p.getPriceForCustomer(), "22.00")
예제 #29
0
 def testGetPriceNet(self):
     """
     """
     p = IPrices(self.order)
     self.assertEqual("%.2f" % p.getPriceNet(), "126.89")
예제 #30
0
 def testGetPriceForCustomer(self):
     """
     """
     pp = IPrices(self.item1)
     self.assertEqual(pp.getPriceForCustomer(), 4536.0)
예제 #31
0
 def testGetPriceForCustomer(self):
     """
     """
     p = IPrices(self.order)
     self.assertEqual("%.2f" % p.getPriceForCustomer(), "151.00")
예제 #32
0
 def testGetPriceNet(self):
     """
     """
     p = IPrices(self.order)
     self.assertEqual("%.2f" % p.getPriceNet(), "126.89")