U
    {h                     @   sp   d dl mZ d dlmZmZ d dlmZmZ G dd deZG dd deZ	G dd	 d	eZ
G d
d deZdS )    )	CharField)SimpleTestCaseTestCase)	LoginFormPasswordResetFormc                       s(   e Zd ZedddZ fddZ  ZS )CustomLoginFormCaptchashould be in extra_fields()label	help_textc                    s(   t   }|ddks$| d d |S )NcaptchaZsolvedzCaptcha is invalid)supercleangetZ	add_error)selfZcleaned_data	__class__ f/var/www/dating/data/www/fatepal.com/env/lib/python3.8/site-packages/wagtail/admin/tests/test_forms.pyr   
   s    
zCustomLoginForm.clean)__name__
__module____qualname__r   r   r   __classcell__r   r   r   r   r      s   r   c                   @   s   e Zd ZedddZdS )CustomPasswordResetFormr   r	   r
   N)r   r   r   r   r   r   r   r   r   r      s   r   c                   @   s   e Zd Zdd ZdS )TestLoginFormc                 C   s&   t  }| t|jd|d fg d S Nr   )r   assertEquallistextra_fieldsr   formr   r   r   test_extra_fields   s    zTestLoginForm.test_extra_fieldsNr   r   r   r"   r   r   r   r   r      s   r   c                   @   s   e Zd Zdd ZdS )TestPasswordResetFormc                 C   s&   t  }| t|jd|d fg d S r   )r   r   r   r   r    r   r   r   r"      s    z'TestPasswordResetForm.test_extra_fieldsNr#   r   r   r   r   r$      s   r$   N)Zdjango.forms.fieldsr   Zdjango.testr   r   Zwagtail.admin.forms.authr   r   r   r   r   r$   r   r   r   r   <module>   s   
