def test_tieredprice(self):
        product = Product.objects.get(slug='PY-Rocks')
        tp = TieredPrice(product=product, pricingtier=self.tier, quantity='1', price=Decimal('10.00'))
        tp.save()
        set_current_user(self.tieruser)
        # should be the new explicit price
        # This test is failing when I run the full test suite but
        # it runs fine if I do python manage.py test tieredpricing
        # I suspect it's a threadlocals issue and a testing issue not that
        # anything is broken. CBM 2-22-2010
        self.assertEqual(product.unit_price, Decimal("10.00"))
Tests scenario where the stagename doesn't exist
dataset/ETHPy150Open dokterbob/satchmo/satchmo/apps/satchmo_ext/tieredpricing/tests.py/TieredTest.test_tieredprice--crossover with--dataset/ETHPy150Open saltstack/salt/tests/unit/states/boto_apigateway_test.py/BotoApiGatewayTestCase.test_absent_when_stage_is_invalid