o
    +ke                     @   sX   d dl Z ddlmZ dd Zdd Zdd	 Zd
d Zdd Zdd Zdd Z	dd Z
dS )    N   rst_to_textc                   C      t ddksJ d S )Nz*foo* and ``bar``.zfoo and bar.r    r   r   :usr/lib/python3.10/site-packages/borg/testsuite/nanorst.pytest_inline      r   c                   C   r   )Nz*foo and bar, thusly
foobar*.zfoo and bar, thusly
foobar.r   r   r   r   r   test_inline_spread
   r	   r
   c                   C   s   t ddksJ d S )NzFoo and Bar
.. foo
barr   r   r   r   r   test_comment_inline   r	   r   c                   C   r   )NzSuch as "\*" characters.zSuch as "*" characters.r   r   r   r   r   test_inline_escape   r	   r   c                   C   r   )NzFoo and Bar

.. foo
barzFoo and Bar

barr   r   r   r   r   test_comment   r	   r   c                   C   r   )Nz.. note::
   Note this and thatzNote:
   Note this and thatr   r   r   r   r   test_directive_note   r	   r   c                  C   s    ddi} t d| ddksJ d S )NZfooZbazzSee :ref:`fo
o`.Z
referenceszSee baz.r   r   r   r   r   test_ref   s   r   c                  C   sH   t t} td W d    n1 sw   Y  dt| jv s"J d S )NzSee :ref:`foo`.zUndefined reference)pytestraises
ValueErrorr   strvalue)exc_infor   r   r   test_undefined_ref%   s   
r   )r   Znanorstr   r   r
   r   r   r   r   r   r   r   r   r   r   <module>   s    