o
    noi                     @   sL   d dl mZmZ d dlmZ d dlmZ d dlmZm	Z	 G dd de	Z
dS )    )parse_expressionparse_statement)node_to_matcher)matches)data_providerUnitTestc                   @   sJ   e Zd ZeddeddfddZeddeddfdd	Zdd
dZdS )MatchersTest))z"some string")zcall(some, **kwargs))za[b.c])z[1 for _ in range(99) if False]codereturnNc                 C   $   t |}t|}| t|| d S N)r   r   
assertTruer   selfr	   nodematcher r   V/home/ubuntu/.local/lib/python3.10/site-packages/libcst/helpers/tests/test_matchers.pytest_reflexive_expressions   s   	z'MatchersTest.test_reflexive_expressions))zdef foo(a) -> None: pass)zclass F: ...)zfoo: barc                 C   r   r   )r   r   r   r   r   r   r   r   test_reflexive_statements   s   z&MatchersTest.test_reflexive_statementsc                 C   s@   t d}t d}| t|t| | t|t|dd d S )Nz(foo  ,   bar  )z	(foo,bar)T)match_syntactic_trivia)r   r   r   r   assertFalse)r   code_wsr	   r   r   r   test_whitespace'   s   
zMatchersTest.test_whitespace)r
   N)__name__
__module____qualname__r   strr   r   r   r   r   r   r   r      s    r   N)libcstr   r   libcst.helpers.matchersr   libcst.matchersr   libcst.testing.utilsr   r   r   r   r   r   r   <module>   s
   