a
    Dg                     @   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deconstructassertEqual)selfblockpathargskwargsr	   r	   b/var/www/lab.imftr.de/x/nb_venv/lib/python3.9/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   Zobjectscreater   r   ZassertListEquallistZextract_referencesstrid)r   Document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   