.. _f-utilstestsstringio: module ``pycode.utils_tests_stringio`` ====================================== .. inheritance-diagram:: pyquickhelper.pycode.utils_tests_stringio Short summary +++++++++++++ module ``pyquickhelper.pycode.utils_tests_stringio`` A :epkg:`*py:io:StringIO` which also outputs its content for a file. :githublink:`%|py|5` Classes +++++++ +--------------------------------------------------------------------------------------+------------------------------------------------+ | class | truncated documentation | +======================================================================================+================================================+ | :class:`StringIOAndFile ` | Overloads a StringIO to also writes in a file. | +--------------------------------------------------------------------------------------+------------------------------------------------+ Methods +++++++ +-------------------------------------------------------------------------------------------+------------------------------------------------+ | method | truncated documentation | +===========================================================================================+================================================+ | :py:meth:`__init__ ` | constructor | +-------------------------------------------------------------------------------------------+------------------------------------------------+ | :meth:`begin_test ` | Redirects output to a :epkg:`*py:io:StringIO`. | +-------------------------------------------------------------------------------------------+------------------------------------------------+ | :meth:`close ` | Calls two close. | +-------------------------------------------------------------------------------------------+------------------------------------------------+ | :meth:`end_test ` | Ends the redirection. | +-------------------------------------------------------------------------------------------+------------------------------------------------+ | :meth:`flush ` | Calls two flush. | +-------------------------------------------------------------------------------------------+------------------------------------------------+ | :meth:`getvalue ` | Returns the content of the buffer. | +-------------------------------------------------------------------------------------------+------------------------------------------------+ | :meth:`write ` | Appends a string. | +-------------------------------------------------------------------------------------------+------------------------------------------------+ Documentation +++++++++++++ .. automodule:: pyquickhelper.pycode.utils_tests_stringio :members: :special-members: __init__ :show-inheritance: