def test_create_source(self):
        log_name = "System"
        guid = "_winsys-test_create_source-%s" % uuid.uuid1()
        try:
            source = event_logs.EventSource.create(guid, log_name)
            self.assertTrue(self.registry_root + log_name + guid)
        except:
            raise
        else:
            source.delete()
            self.assertFalse(bool(self.registry_root + log_name + guid))
dataset/ETHPy150Open tjguk/winsys/winsys/tests/test_event_logs.py/TestEventLogs.test_create_source/original