def testNotActive(self):
        self.discount.startDate = datetime.date(2006, 12, 1)
        self.discount.endDate = datetime.date(5000, 12, 1)
        self.discount.active = False
        self.discount.save()
        v = self.discount.isValid()
        self.assertFalse(v[0], False)
        self.assertEqual(v[1], u'This coupon is disabled.')
Not active should always be invalid.
dataset/ETHPy150Open dokterbob/satchmo/satchmo/apps/product/tests.py/DiscountTest.testNotActive