o
    jz                     @   s   d dl Z d dlmZ d dlmZ d dlmZ d dlmZ d dl	m
Z
 d dlmZ d dlmZ d d	lmZ eje_eje_eeee jZG d
d de jZedkrWe   dS dS )    N)TDictDocumentTest)YamlDocument)MethodContext)Application)srpc)Service)
ServerBase)yamlc                   @   s   e Zd Zdd ZdS )Testc                 C   sb   G dd dt }t|gdt t d}t|}t|tj}dg|_||\}|jj	dks/J d S )Nc                   @   s   e Zd Ze dd ZdS )z,Test.test_invalid_input.<locals>.SomeServicec                   S   s   d S )N r   r   r   ]/var/www/html/LicenciasMiG/venv/lib/python3.10/site-packages/spyne/test/protocol/test_yaml.pyyay)   s   z0Test.test_invalid_input.<locals>.SomeService.yayN)__name__
__module____qualname__r   r   r   r   r   r   SomeService(   s    r   tns)in_protocolout_protocol   {zClient.YamlDecodeError)
r   r   r   r   r   SERVER	in_stringgenerate_contextsin_error	faultcode)selfr   appserverinitial_ctxctxr   r   r   test_invalid_input'   s   zTest.test_invalid_inputN)r   r   r   r    r   r   r   r   r
   &   s    r
   __main__)unittest!spyne.test.protocol._test_dictdocr   spyne.protocol.yamlr   spyner   spyne.applicationr   spyne.decoratorr   spyne.servicer   spyne.serverr   r	   dumpdumpsloadloads
out_kwargsTestYamlDocumentTestCaser
   r   mainr   r   r   r   <module>   s    