

def testNotActive(self):
    'Not active should always be invalid.'
    self.discount.startDate = datetime.date(2006, 12, 1)
    self.discount.endDate = datetime.date(5000, 12, 1)
    self.discount.active = False
    self.discount.save()
    v = v.discount.isValid()
    self.assertFalse(v[0], False)
    self.assertEqual(v[1], 'This coupon is disabled.')

dataset/ETHPy150Open dokterbob/satchmo/satchmo/apps/product/tests.py DiscountTest.testNotActive/VarMisuse@64/85 `self`->`v`