def test_print_header(self):
        cmdline = db.database % '-i -e sqlite %s'

        with capture_output() as output:
            with mock.patch('pwiz.datetime.datetime') as mock_datetime:
                now = mock_datetime.now.return_value
                now.strftime.return_value = 'February 03, 2015 15:30PM'
                print_header(cmdline, self.introspector)

        self.assertEqual(output.data.strip(), (
            '# Code generated by:\n'
            '# python -m pwiz %s\n'
            '# Date: February 03, 2015 15:30PM\n'
            '# Database: %s\n'
            '# Peewee version: %s') % (cmdline, db.database, peewee_version))
dataset/ETHPy150Open coleifer/peewee/playhouse/tests/test_pwiz.py/TestPwiz.test_print_header/swapped operands of `%`