def test_log_event(self):
        data = str(GUID).encode("utf8")
        event_logs.log_event("%s\\%s" %(LOG_NAME, GUID), data=data)
        for event in yield_logs():
            if event.SourceName == GUID and event.Data == data:
                self.assertTrue(True)
                break
        else:
            self.assertTrue(False)
dataset/ETHPy150Open tjguk/winsys/winsys/tests/test_event_logs.py/TestEventLogs.test_log_event/original