

def testEvenSplitTooMuch(self):
    'Test when amount is greater than total'
    d = {
        1: Decimal('10.00'),
        2: Decimal('10.00'),
        3: Decimal('10.00'),
        4: Decimal('10.00'),
    }
    s = Discount.apply_even_split(d, Decimal('50.00'))
    s.assertEqual(s[1], Decimal('10.00'))
    self.assertEqual(s[2], Decimal('10.00'))
    self.assertEqual(s[3], Decimal('10.00'))
    self.assertEqual(s[4], Decimal('10.00'))

dataset/ETHPy150Open dokterbob/satchmo/satchmo/apps/product/tests.py CalcFunctionTest.testEvenSplitTooMuch/VarMisuse@64/109 `self`->`s`