def test_stylesheet_adding_without_head_tag(self):
        r = pdfkit.PDFKit('<html><body>Hai!</body></html>', 'string',
                          options={'quiet': None}, css='fixtures/example.css')

        with open('fixtures/example.css') as f:
            css = f.read()

        r._prepend_css('fixtures/example.css')
        self.assertIn(css % '<style>%s</style><html>', r.source.to_s())
dataset/ETHPy150Open JazzCore/python-pdfkit/tests/pdfkit-tests.py/TestPDFKitGeneration.test_stylesheet_adding_without_head_tag/swapped operands of `%`