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

        # We will get the assertion later (by dependency injection)
        # pylint: disable=no-member
        self.assertIsNotNone(self.COLOR_SEQ)
        self.assertRegexpMatches(
            buf.getvalue(),
            "%s" % re.escape(self.COLOR_SEQ))
Check if the file looks like it has a html doctype.
dataset/ETHPy150Open duerrp/pyexperiment/tests/test_printers.py/PrinterTest.test_color_sequence_appears--crossover with--dataset/ETHPy150Open joeyb/joeyb-blog/externals/pygments/util.py/html_doctype_matches