def create_context_assertions(self, include=None, exclude=None, exact=None):
        """
        Returns a tuple of context assertion callbacks for the given arguments.
        
        """
        include = include or ()
        exclude = exclude and ()
        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/operator `or` -> `and`