← Back
Editing: _test.cpython-311.pyc
� p��c� � � � d dl Z d dlZddlmZmZmZmZmZ G d� de j � � Z G d� de � � Z G d� d e � � Zed k r e j � � dS dS )� N� )�PunctuationMode�CallbackType� SSIPClient�Scope�Speakerc � � e Zd Zd� Zd� ZdS )�_SSIPClientTestc � � t d� � | _ | j � d� � | j � d� � d S )N�test�en� )r �_client�set_language�set_rate��selfs �//usr/lib/python3/dist-packages/speechd/_test.py�setUpz_SSIPClientTest.setUp sC � �!�&�)�)�����!�!�$�'�'�'�����b�!�!�!�!�!� c �8 � | j � � � d S )N)r �closer s r �tearDownz_SSIPClientTest.tearDown s � ���������r N)�__name__� __module__�__qualname__r r � r r r r s2 � � � � � �"� "� "� � � � � r r c � � e Zd ZdZd� ZdS )� AutomaticTestz�A set of tests which may be evaluated automatically. Please put all tests which require a user to listen to their output to the VoiceTest below. c �x �� | j � d� � t j g t j g t j g i�| j � d�fd��� � | j � d�fd��� � t j d� � | j � � � | j � d�fd ��� � t j d � � �fd�t j t j t j fD � � \ }}}|dd gk r|d gk rd|v rd|v rd |vsJ �df� � �d S )N�flitez]This message should get interrupted. It is hopefully long enough to last more than 1 second.c �: �� �| � d� � S )N�msg1��append��type�calleds �r �<lambda>z.AutomaticTest.test_callbacks.<locals>.<lambda>8 � �� ����1D�1D�V�1L�1L� r )�callbackz0This second message should not be spoken at all.c �: �� �| � d� � S )N�msg2r$ r&