'Test a calculation is True, also checking the inverse "negate" case.'

def assertCalc(self, calc, context=None):

    context = (context or {})
    self.assertTrue(calc.resolve(context))
    calc.negate = (not calc.negate)
    self.assertFalse(calc.resolve(context))
