def assertCalcFalse(self, calc, context=None):
        context = context or {}
        self.assertFalse(calc.resolve(context))
        calc.negate = not calc.negate
        self.assert_(calc.resolve(context))
Test a calculation is False, also checking the inverse "negate" case.
dataset/ETHPy150Open aehlke/manabi/apps/utils/templatetags/smartif.py/SmartIfTests.assertCalcFalse