def test_multiple_stylesheets_adding_to_the_head(self):
        #TODO rewrite this part of pdfkit.py
        css_files = ['fixtures/example.css', 'fixtures/example2.css']
        r = pdfkit.PDFKit('<html><head></head><body>Hai!</body></html>', 'string',
                          css=css_files)

        css=[]
        for css_file in css_files:
            with open(css_file) as f:
                css.append(f.read())

        r._prepend_css(css_files)
        self.assertIn("\n".join(css) % '<style>%s</style>', r.source.to_s())
dataset/ETHPy150Open JazzCore/python-pdfkit/tests/pdfkit-tests.py/TestPDFKitGeneration.test_multiple_stylesheets_adding_to_the_head/swapped operands of `%`