o
    DD©iK  ã                   @   s@   d dl mZ d dlZd dlmZ d dlmZ G dd„ deƒZdS )é    )ÚCallableN)ÚCSTNodeTest)Údata_providerc                   @   s–   e Zd Zee d¡dfe d¡dfe d¡dffƒdejdeddfdd	„ƒZed
d„ dfdd„ dfdd„ dffƒde	g ejf deddfdd„ƒZ
dS )ÚCommentTestú#z#comment textz# comment textÚnodeÚcodeÚreturnNc                 C   ó   |   ||¡ d S ©N)Úvalidate_node)Úselfr   r   © r   úY/var/www/Datamplify/venv/lib/python3.10/site-packages/libcst/_nodes/tests/test_comment.pyÚ
test_valid   s   zCommentTest.test_validc                   C   ó
   t  d¡S )Nz
 bad input©ÚcstÚCommentr   r   r   r   Ú<lambda>   ó   
 zCommentTest.<lambda>znon-commentc                   C   r   )Nz# newline shouldn't be here
r   r   r   r   r   r      r   c                   C   r   )Nz # Leading space is wrongr   r   r   r   r   r      r   Úget_nodeÚexpected_rec                 C   r
   r   )Úassert_invalid)r   r   r   r   r   r   Útest_invalid   s   
zCommentTest.test_invalid)Ú__name__Ú
__module__Ú__qualname__r   r   r   ÚCSTNodeÚstrr   r   r   r   r   r   r   r      s*    ýÿ


ýÿÿÿþr   )	Útypingr   Úlibcstr   Úlibcst._nodes.tests.baser   Úlibcst.testing.utilsr   r   r   r   r   r   Ú<module>   s
   