def status_token(status): """Return the token to use for the given test case result status. RETURNS a pygments Token """ return getattr(Token.TestResult, status, Token.Error)