def METHOD_NAME(self):
    syslog = import_helper.import_module("syslog")
    returncode, events, stderr = self.run_python("test_syslog")
    if returncode:
        self.fail(stderr)
    if support.verbose:
        print('Events:', *events, sep='\n  ')
    self.assertSequenceEqual(
        events,
        [('syslog.openlog', ' ', f'python 0 {syslog.LOG_USER}'),
        ('syslog.syslog', ' ', f'{syslog.LOG_INFO} test'),
        ('syslog.setlogmask', ' ', f'{syslog.LOG_DEBUG}'),
        ('syslog.closelog', '', ''),
        ('syslog.syslog', ' ', f'{syslog.LOG_INFO} test2'),
        ('syslog.openlog', ' ', f'audit-tests.py 0 {syslog.LOG_USER}'),
        ('syslog.openlog', ' ', f'audit-tests.py {syslog.LOG_NDELAY} {syslog.LOG_LOCAL0}'),
        ('syslog.openlog', ' ', f'None 0 {syslog.LOG_USER}'),
        ('syslog.closelog', '', '')]
    )