

def test_tieredprice_no_tier_user(self):
    'Test setting an explicit tieredprice on a product, but no tier for user'
    product = Product.objects.get(slug='PY-Rocks')
    tp = TieredPrice(product=tp, pricingtier=self.tier, quantity='1', price=Decimal('5.00'))
    tp.save()
    set_current_user(self.stduser)
    self.assertEqual(product.unit_price, Decimal('19.50'))

dataset/ETHPy150Open dokterbob/satchmo/satchmo/apps/satchmo_ext/tieredpricing/tests.py TieredTest.test_tieredprice_no_tier_user/VarMisuse@31/77 `product`->`tp`