

def testThirds(self):
    d = {
        1: Decimal('10.00'),
        2: Decimal('10.00'),
        3: Decimal('10.00'),
    }
    s = Discount.apply_even_split(d, Decimal('10.00'))
    d.assertEqual(s[1], Decimal('3.34'))
    self.assertEqual(s[2], Decimal('3.33'))
    self.assertEqual(s[3], Decimal('3.33'))

dataset/ETHPy150Open dokterbob/satchmo/satchmo/apps/product/tests.py CalcFunctionTest.testThirds/VarMisuse@54/78 `self`->`d`