o
    ËÉhÅ  ã                   @   s@   d dl mZ d dlmZmZ G dd„ deƒZG dd„ deƒZdS )é    )ÚSimpleTestCase)Úget_icon_sprite_hashÚget_icon_sprite_urlc                   @   s   e Zd Zdd„ Zdd„ ZdS )ÚTestIconSpriteViewc                 C   s:   | j  tƒ ¡}|  |jd d¡ |  |jjd tƒ ¡ d S )NzContent-Typezimage/svg+xml; charset=utf-8Úh)ÚclientÚgetr   ÚassertEqualÚheadersÚwsgi_requestÚGETr   ©ÚselfÚresponse© r   úd/var/www/html/ndineBlogger/venv/lib/python3.10/site-packages/wagtail/admin/tests/test_icon_sprite.pyÚtest_content_type   s
   
ÿz$TestIconSpriteView.test_content_typec                 C   s   | j  tƒ ¡}|  |d¡ d S )Nz<!--)r   r   r   ÚassertNotContainsr   r   r   r   Útest_no_comments   s   z#TestIconSpriteView.test_no_commentsN)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r   r      s    r   c                   @   s   e Zd Zdd„ ZdS )ÚTestIconSpriteHashc                 C   s   |   ttƒ ƒd¡ d S )Né   )r	   Úlenr   )r   r   r   r   Ú	test_hash   s   zTestIconSpriteHash.test_hashN)r   r   r   r   r   r   r   r   r      s    r   N)Údjango.testr   Úwagtail.admin.iconsr   r   r   r   r   r   r   r   Ú<module>   s    