o
    oia                     @   s   d dl mZ e  zd dlZW n ey   d dlmZ Y nw d dlZd dlm	Z
 e
eedde
dG dd de
jZed	krKe
  dS dS )
    )monkeyN)clientsslzNeeds socket.ssl (Python 2)zTries to access amazon.comc                   @   s    e Zd ZdZdd Zdd ZdS )AmazonHTTPSTests   c                 C   s"   t d}|dd |  d S )Nsdb.amazonaws.comGET/)httplibHTTPSConnectionrequestgetresponse)selfconn r   \/var/www/html/pca-backend/venv/lib/python3.10/site-packages/gevent/tests/test__socket_ssl.pytest_amazon_response   s   
z%AmazonHTTPSTests.test_amazon_responsec                 C   s8   t   }|d t |}t|sJ t|sJ d S )N)r   i  )socketconnectr   strrepr)r   r   ssl_connr   r   r   test_str_and_repr   s
   

z"AmazonHTTPSTests.test_str_and_reprN)__name__
__module____qualname____timeout__r   r   r   r   r   r   r      s    r   __main__)geventr   	patch_allr
   ImportErrorhttpr   r   gevent.testingtesting	greentest
skipUnlesshasattrskipWithoutExternalNetworkTestCaser   r   mainr   r   r   r   <module>   s$   