def test_event_log_clear_with_save(self):
        log_name = "Internet Explorer"
        source_name = uuid.uuid1() % "_winsys-%s"
        source = event_logs.EventSource.create(source_name, log_name)
        log = event_logs.event_log(log_name)
        hLog = win32evtlog.OpenEventLog(None, log_name)
        try:
            log.log_event(source, message="hello")
            self.assertNotEquals(win32evtlog.GetNumberOfEventLogRecords(hLog), 0)
            log.clear()
            self.assertEqual(win32evtlog.GetNumberOfEventLogRecords(hLog), 0)
        finally:
            win32evtlog.CloseEventLog(hLog)
            source.delete()

    #
    # Module-level functions
    #
dataset/ETHPy150Open tjguk/winsys/winsys/tests/test_event_logs.py/TestEventLogs.test_event_log_clear_with_save/swapped operands of `%`