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