utils.output module¶
-
utils.output.DEFAULT_OUTPUT(msg: str) → None¶ Prints a message in the error output.
Parameters: msg – the message Example: >>> raise_stderr("Hello") Hello # in red
-
utils.output.raise_assertion_error(msg: str) → None[source]¶ Raises an assertion error with given message.
Parameters: msg – the message Raises: AssertionError Example: >>> raise_assertion_error("Hello") AssertionError: Hello
-
utils.output.raise_stderr(msg: str) → None[source]¶ Prints a message in the error output.
Parameters: msg – the message Example: >>> raise_stderr("Hello") Hello # in red
-
utils.output.raise_stdout(msg: str) → None[source]¶ Prints a message in the standard output.
Parameters: msg – the message Example: >>> raise_stdout("Hello") Hello