o
    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captchasolvedzCaptcha is invalid)supercleanget	add_error)selfcleaned_data	__class__ ^/var/www/html/ndineBlogger/venv/lib/python3.10/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                   @      e Zd Zdd ZdS )TestLoginFormc                 C   &   t  }| t|jd|d fg d S Nr   )r   assertEquallistextra_fieldsr   formr   r   r   test_extra_fields       zTestLoginForm.test_extra_fieldsNr   r   r   r'   r   r   r   r   r          r   c                   @   r   )TestPasswordResetFormc                 C   r    r!   )r   r"   r#   r$   r%   r   r   r   r'      r(   z'TestPasswordResetForm.test_extra_fieldsNr)   r   r   r   r   r+      r*   r+   N)django.forms.fieldsr   django.testr   r   wagtail.admin.forms.authr   r   r   r   r   r+   r   r   r   r   <module>   s    
