o
    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   deconstructassertEqual)selfblockpathargskwargsr	   r	   c/var/www/html/ndineBlogger/venv/lib/python3.10/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   assertListEquallist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)	django.testr   wagtail.documentsr   wagtail.documents.blocksr   utilsr   r   r	   r	   r	   r   <module>   s
    