'Convert context data into a full Context object
(assuming it isn\'t already a Context object).'

def resolve_context(self, context):

    if isinstance(context, Context):
        return context
    else:
        return Context(context)
