
    ,h_                     >    d dl mZ d dlmZ ddlmZ  G d de      Zy)    )unicode_literals)
IMAPClient   )IMAPClientTestc                   $    e Zd Zd Zd Zd Zd Zy)TestPlainLoginc                     | j                   j                  j                  }| j                  |j                  d       |j
                  d   \  }}| j                  |d       | j                   |d       |       y )Nr   r   PLAIN)client_imapauthenticateassertEqual
call_count	call_args)selfexpected_auth_stringr   	auth_type	auth_funcs        [/var/www/html/Resume-Scraper/venv/lib/python3.12/site-packages/imapclient/test/test_auth.pyassert_authenticate_callz'TestPlainLogin.assert_authenticate_call   sg    {{((5500!4+55a8	9G,4*>?    c                     ddgf| j                   j                  j                  _        | j                   j	                  dd      }| j                  |d       | j                  d       y )NOK   Successusersecretz user secretr   r   r   return_valueplain_loginr   r   r   results     r   test_simplezTestPlainLogin.test_simple   sV    7;j\6J&&3((:,%%&67r   c                     ddgf| j                   j                  j                  _        | j	                  t
        j                  | j                   j                  dd       y )NNOs   Boomr   r   )r   r   r   r   assertRaisesr   Errorr   )r   s    r   	test_failzTestPlainLogin.test_fail   sE    7;gY6G&&3***DKK,C,CVXVr   c                     ddgf| j                   j                  j                  _        | j                   j	                  ddd      }| j                  |d       | j                  d       y )Nr   r   r   r   authidzauthid user secretr   r    s     r    test_with_authorization_identityz/TestPlainLogin.test_with_authorization_identity   sX    7;j\6J&&3((8D,%%&<=r   N)__name__
__module____qualname__r   r"   r'   r*    r   r   r   r      s    @8W>r   r   N)
__future__r   
imapclientr   imapclient_testr   r   r.   r   r   <module>r2      s   
 ( ! +>^ >r   