Your IP : 216.73.216.213
B
R�X� � @ s� d dl mZ d dlZd dlZd dlZd dlmZ d dlmZ e� dej
�Ze� d�Ze� d�Z
G dd � d e�ZG d
d� de�ZG dd
� d
e�ZdS )� )�absolute_importN)�Manuel)�diffz^\.\.\s*topic::?\s*(.+)\bz(\n\Z|\n(?=\S))z\s+:class:\s*(read|write)-filec @ s e Zd Zdd� ZdS )� FileBlockc C s ||| | _ | _| _d S )N)�path�content�action)�selfr r r � r
�D/opt/alt/python37/lib/python3.7/site-packages/testfixtures/manuel.py�__init__ s zFileBlock.__init__N)�__name__�
__module__�__qualname__r r
r
r
r r s r c @ s e Zd ZdZdZdZdS )�
FileResultTN)r
r r �passed�expected�actualr
r
r
r r s r c @ s0 e Zd ZdZdd� Zdd� Zdd� Zdd � Zd
S )�Filesa6
A `Manuel <http://packages.python.org/manuel/>`__ plugin that
parses certain ReST sections to read and write files in the
configured :class:`TempDirectory`.
:param name: This is the name of the :class:`TempDirectory` to use
in the Manual global namespace (ie: `globs`).
c C s( || _ tj| | jg| jg| jgd� d S )N)�parsersZ
evaluatersZ
formatters)�namer r �parse�evaluate�format)r r r
r
r r '