def test_message_sequence_appears(self):
        buf = io.StringIO()
        with stdout_redirector(buf):
            self.printer("foo")

        # We will get the assertion later (by dependency injection)
        self.assertRegexpMatches(  # pylint: disable=no-member
            buf.getvalue(), "foo")
Test printing actually prints the message
dataset/ETHPy150Open duerrp/pyexperiment/tests/test_printers.py/PrinterTest.test_message_sequence_appears