

def create_context_assertions(self, include=None, exclude=None, exact=None):
    '\n        Returns a tuple of context assertion callbacks for the given arguments.\n        \n        '
    include = (include or ())
    exclude = (exclude or ())
    exact = (exact if isinstance(exact, collections.Mapping) else dict((exact or {
        
    })))
    return ((((functools.partial(self.assertContextIncludes, names=include),) if include else ()) + ((functools.partial(self.assertContextExcludes, names=exclude),) if exclude else ())) + ((functools.partial(self.assertContextExact, context=exact),) if exact else ()))

dataset/ETHPy150Open skibblenybbles/django-daydreamer/daydreamer/test/context.py TestCase.create_context_assertions/original