U
    [!c                     @   sT   d dl mZ d dlmZ d dlmZmZ d dlmZ dddiiZ	G dd	 d	eZ
d
S )    )override_settings)reverse)TestCasepatch)get_user_modelZpersonaZAUDIENCEzhttps://www.example.com:433c                   @   s   e Zd Zeeddd ZdS )PersonaTests)SOCIALACCOUNT_PROVIDERSc              	   C   sb   t dP}ddd|jjj_| jtdtdd}| j|dd	d
 t j	j
dd W 5 Q R X d S )Nz6allauth.socialaccount.providers.persona.views.requestsZokayzpersona@example.com)statusemailZpersona_logindummy)Z	assertionz/accounts/profile/F)Zfetch_redirect_response)r
   )r   postZreturn_valuejsonZclientr   dictZassertRedirectsr   objectsget)selfZrequests_mockZresp r   q/var/www/html/crackeverytest/cet_env/lib/python3.8/site-packages/allauth/socialaccount/providers/persona/tests.py
test_login   s      zPersonaTests.test_loginN)__name__
__module____qualname__r   r   r   r   r   r   r   r      s   r   N)Zdjango.test.utilsr   Zdjango.urlsr   Zallauth.testsr   r   Zallauth.utilsr   r   r   r   r   r   r   <module>   s
   