File: D:/Python311/Lib/test/__pycache__/test_syslog.cpython-311.opt-2.pyc
�
��Vc� � � � d dl mZ ej d� � Zd dlZ G d� dej � � Zedk r ej � � dS dS )� )�
import_helper�syslogNc �8 � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z dS ) �Testc � � t � d� � | � t t j d� � d S )N�pythonu �)r �openlog�assertRaises�UnicodeEncodeError��selfs �$D:\Python311\Lib\test\test_syslog.py�test_openlogzTest.test_openlog s5 � ����x� � � ����,�f�n�h�G�G�G�G�G� c � � t � d� � t � d� � t � t j d� � d S )Nr �$test message from python test_syslogz"test error from python test_syslog)r r �LOG_ERRr s r �test_syslogzTest.test_syslog sD � ����x� � � ��
�
�<�=�=�=��
�
�f�n�&J�K�K�K�K�Kr c �l � t � d� � t � � � d S )Nr )r r �closelogr s r �
test_closelogzTest.test_closelog s* � ����x� � � ��������r c �N � t � t j � � d S �N)r �
setlogmask� LOG_DEBUGr s r �test_setlogmaskzTest.test_setlogmask s � ����&�*�+�+�+�+�+r c �N � t � t j � � d S r )r �LOG_MASK�LOG_INFOr s r �
test_log_maskzTest.test_log_mask � � ������(�(�(�(�(r c �N � t � t j � � d S r )r �LOG_UPTOr r s r �
test_log_uptozTest.test_log_upto r! r c �l � t � � � t � d� � d S )Nr )r r r s r �test_openlog_noargszTest.test_openlog_noargs"