def assertCalc(self, calc, context=None):
        context = context or {}
        self.assert_(calc.resolve(context))
        calc.negate = not calc.negate
        self.assertFalse(calc.resolve(context))
:param resource_listing: JSON representing a Swagger 1.2 resource listing
dataset/ETHPy150Open aehlke/manabi/apps/utils/templatetags/smartif.py/SmartIfTests.assertCalc--crossover with--dataset/ETHPy150Open striglia/pyramid_swagger/pyramid_swagger/api.py/build_swagger_12_resource_listing