U
    {h                     @   sD   d dl mZ d dlmZ d dlmZ ddlmZ G dd deZdS )	    )TestCase)get_document_model)DocumentChooserBlock   )get_test_document_filec                   @   s   e Zd Zdd Zdd ZdS )TestDocumentChooserBlockc                 C   sD   t dd}| \}}}| |d | |d | |ddi d S )NF)requiredz-wagtail.documents.blocks.DocumentChooserBlock r   )r   ZdeconstructZassertEqual)selfblockpathargskwargsr	   r	   k/var/www/dating/data/www/fatepal.com/env/lib/python3.8/site-packages/wagtail/documents/tests/test_blocks.pytest_deconstruct
   s
    
z)TestDocumentChooserBlock.test_deconstructc                 C   s^   t  }|jjdt d}t }| t|||t|j	ddfg | t|d g  d S )NzTest document)titlefile )
r   objectscreater   r   ZassertListEquallistZextract_referencesstrid)r
   ZDocumentZdocumentr   r	   r	   r   test_extract_references   s     z0TestDocumentChooserBlock.test_extract_referencesN)__name__
__module____qualname__r   r   r	   r	   r	   r   r   	   s   r   N)	Zdjango.testr   Zwagtail.documentsr   Zwagtail.documents.blocksr   utilsr   r   r	   r	   r	   r   <module>   s   