Current File : //usr/lib64/python3.6/site-packages/borg/testsuite/__pycache__/nanorst.cpython-36.pyc |
3
y��b� � @ sX d dl Z ddlmZ dd� Zdd� Zdd � Zd
d� Zdd
� Zdd� Zdd� Z dd� Z
dS )� N� )�rst_to_textc C s t d�dkst�d S )Nz*foo* and ``bar``.zfoo and bar.)r �AssertionError� r r �/usr/lib64/python3.6/nanorst.py�test_inline s r c C s t d�dkst�d S )Nz*foo and bar, thusly
foobar*.zfoo and bar, thusly
foobar.)r r r r r r �test_inline_spread s r c C s t d�dkst�d S )NzFoo and Bar
.. foo
bar)r r r r r r �test_comment_inline s r c C s t d�dkst�d S )NzSuch as "\*" characters.zSuch as "*" characters.)r r r r r r �test_inline_escape s r
c C s t d�dkst�d S )NzFoo and Bar
.. foo
barzFoo and Bar
bar)r r r r r r �test_comment s r c C s t d�dkst�d S )Nz.. note::
Note this and thatzNote:
Note this and that)r r r r r r �test_directive_note s r c C s ddi} t d| d�dkst�d S )NZfooZbazzSee :ref:`fo
o`.)�
referenceszSee baz.)r r )r
r r r �test_ref s r c
C s4 t jt��} td� W d Q R X dt| j�ks0t�d S )NzSee :ref:`foo`.zUndefined reference)�pytestZraises�
ValueErrorr �str�valuer )�exc_infor r r �test_undefined_ref&