def add_context(self, name, context, prefix_char=None):
if name in self.contexts:<EOL><INDENT>raise SuiteError("<STR_LIT>" % name)<EOL><DEDENT>if not context.success:<EOL><INDENT>raise SuiteError("<STR_LIT>" % name)<EOL><DEDENT>self.contexts[name] = dict(name=name,<EOL>context=context.copy(),<EOL>tool_aliases={},<EOL>hidden_tools=set(),<EOL>priority=self._next_priority,<EOL>prefix_char=prefix_char)<EOL>self._flush_tools()<EOL>
Add a context to the suite.

        Args:
            name (str): Name to store the context under.
            context (ResolvedContext): Context to add.