
    M}bg5                     <    d dl Z d dlZ G d de j                  ZdS )    Nc                   ,    e Zd Zd Zd Zd Zd Zd ZdS )	UnitTestsc                 p    t          j        d          }|                     d|j        j                   d S )N
MY_API_KEYapi_keyhttps://api.sendgrid.com)sendgridSendGridAPIClientassertEqualclienthostselfsgs     j/home/e360mart.nyusoft.in/public_html/e360mart_env/lib/python3.11/site-packages/test/unit/test_sendgrid.pytest_host_with_no_regionz"UnitTests.test_host_with_no_region   s6    '===3BINCCCCC    c                     t          j        d          }|                    d           |                     d|j        j                   d S )Nr   r   euzhttps://api.eu.sendgrid.comr
   r   set_sendgrid_data_residencyr   r   r   r   s     r   test_host_with_eu_regionz"UnitTests.test_host_with_eu_region	   sJ    '===
&&t,,,6ry~FFFFFr   c                     t          j        d          }|                    d           |                     d|j        j                   d S )Nr   r   globalr	   r   r   s     r   test_host_with_global_regionz&UnitTests.test_host_with_global_region   sJ    '===
&&x0003BINCCCCCr   c                     t          j        d          }|                     t                    5  |                    d            d d d            d S # 1 swxY w Y   d S )Nr   r   r
   r   assertRaises
ValueErrorr   r   s     r   test_with_region_is_nonez"UnitTests.test_with_region_is_none   s    '===z** 	1 	1**4000	1 	1 	1 	1 	1 	1 	1 	1 	1 	1 	1 	1 	1 	1 	1 	1 	1 	1   AAAc                     t          j        d          }|                     t                    5  |                    d           d d d            d S # 1 swxY w Y   d S )Nr   r   abcr   r   s     r   test_with_region_is_invalidz%UnitTests.test_with_region_is_invalid   s    '===z** 	2 	2**5111	2 	2 	2 	2 	2 	2 	2 	2 	2 	2 	2 	2 	2 	2 	2 	2 	2 	2r"   N)__name__
__module____qualname__r   r   r   r!   r%    r   r   r   r      sh        D D DG G G
D D D
1 1 1
2 2 2 2 2r   r   )unittestr
   TestCaser   r)   r   r   <module>r,      sN     2 2 2 2 2! 2 2 2 2 2r   