o
    w+f/                     @   sJ   d dl mZ zd dlZW n ey   d dlZY nw G dd dejZdS )    )	SpamCheckNc                   @   s4   e Zd Zdd Zdd Zdd Zdd Zd	d
 ZdS )	UnitTestsc                 C   .   dddd}t dddd}| | | d S )NT   https://www.test.comenable	thresholdpost_to_urlr   assertEqualgetselfexpected
spam_check r   L/var/www/html/venv/lib/python3.10/site-packages/test/unit/test_spam_check.pytest_spam_all_values      zUnitTests.test_spam_all_valuesc                 C   s*   ddd}t ddd}| | | d S )NT
   )r   r	   r   r   r   r   r   test_spam_no_url   s   
zUnitTests.test_spam_no_urlc                 C   s&   ddi}t dd}| | | d S )Nr   T)r   r   r   r   r   r   test_spam_no_threshold   s   
z UnitTests.test_spam_no_thresholdc                 C   r   )NF   r   r   r   r   r   r   r   test_has_values_but_not_enabled   r   z)UnitTests.test_has_values_but_not_enabledc                 C   s@   dddd}t dddd}d|_d|_d|_| | | dS )	z5Tests changing the properties of the spam check classFr   zhttps://www.testing.comr   Tr   r   N)r   r   r	   r
   r   r   r   r   r   r   test_spam_change_properties   s   z%UnitTests.test_spam_change_propertiesN)__name__
__module____qualname__r   r   r   r   r   r   r   r   r   r   	   s    r   ) sendgrid.helpers.mail.spam_checkr   	unittest2unittestImportErrorTestCaser   r   r   r   r   <module>   s    