

def test_tieredprice(self):
    'Test setting an explicit tieredprice on a product'
    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)
    self.assertEqual(tp.unit_price, Decimal('10.00'))

dataset/ETHPy150Open dokterbob/satchmo/satchmo/apps/satchmo_ext/tieredpricing/tests.py TieredTest.test_tieredprice/VarMisuse@68/111 `product`->`tp`