def test_get_price_net(self):
        # Test product
        self.assertEqual("%.2f" % self.p1.get_price_net(self.request), "0.84")

        # Test variant. By default the price_net of a variant is inherited,
        # but the tax is.
        self.assertEqual("%.2f" % self.v1.get_price_net(self.request), "0.84")

        # Now we switch to ctive price.
        self.v1.active_price = True
        self.v1.save()

        # Now we get the price net of the parent product
        self.assertEqual("%.2f" % self.v1.get_price_net(self.request), "1.68")
Tests the net price of a product and a variant. Takes active_price of
dataset/ETHPy150Open diefenbach/django-lfs/lfs/gross_price/tests.py/GrossPriceTestCase.test_get_price_net