

def test_basic(self):
    pcalc = PriceAdjustmentCalc(self.price)
    p = PriceAdjustment('test', amount=Decimal(1))
    pcalc += p
    pcalc += pcalc
    p = PriceAdjustment('test2', amount=Decimal(10))
    pcalc += p
    self.assertEqual(pcalc.total_adjustment(), Decimal(12))

dataset/ETHPy150Open dokterbob/satchmo/satchmo/apps/product/tests.py PriceAdjustmentTest.test_basic/VarMisuse@39/52 `p`->`pcalc`