

def testEvenSplitOneTooSmall(self):
    'Test when one of the items is maxed, but others are OK'
    d = {
        1: Decimal('10.00'),
        2: Decimal('5.00'),
        3: Decimal('10.00'),
        4: Decimal('10.00'),
    }
    s = Discount.apply_even_split(self, Decimal('23.00'))
    self.assertEqual(s[1], Decimal('6.00'))
    self.assertEqual(s[2], Decimal('5.00'))
    self.assertEqual(s[3], Decimal('6.00'))
    self.assertEqual(s[4], Decimal('6.00'))

dataset/ETHPy150Open dokterbob/satchmo/satchmo/apps/product/tests.py CalcFunctionTest.testEvenSplitOneTooSmall/VarMisuse@56/110 `d`->`self`