
]c           @   sx   d  Z  d d l Z d d l m Z d d l m Z d d l m Z d d	 l m	 Z	 d
 Z
 d Z d e f d     YZ d S(   s   Tests for ASCIIDocExporter`iN(   t   Configi   (   t   ExportersTestsBasei   (   t   ASCIIDocExporteri   (   t   onlyif_cmds_exists   In\[(.*)\]:s   Out\[(.*)\]:t   TestASCIIDocExporterc           B   sG   e  Z d  Z e Z d   Z e d  d    Z e d  d    Z RS(   s   Tests for ASCIIDocExporterc         C   s   t    d S(   s8   
        Can a ASCIIDocExporter be constructed?
        N(   R   (   t   self(    (    sF   lib/python2.7/site-packages/nbconvert/exporters/tests/test_asciidoc.pyt   test_constructor"   s    t   pandocc         C   sj   t    j |  j    \ } } t |  d k s6 t  t j t |  sN t  t j t |  sf t  d S(   s:   
        Can a ASCIIDocExporter export something?
        i    N(	   R   t   from_filenamet   _get_notebookt   lent   AssertionErrort   ret   findallt   in_regext	   out_regex(   R   t   outputt	   resources(    (    sF   lib/python2.7/site-packages/nbconvert/exporters/tests/test_asciidoc.pyt   test_export)   s    c         C   s   i i t  d 6t  d 6d 6} t |  } t d |  } | j |  j d d   \ } } t j t |  sp t  t j t	 |  s t  d S(   sJ   
        Can a ASCIIDocExporter export something without prompts?
        t   exclude_input_promptt   exclude_output_promptt   TemplateExportert   configt   nb_names   prompt_numbers.ipynbN(
   t   TrueR    R   R   R	   R   R   R   R   R   (   R   t	   no_promptt   c_no_promptt   exporterR   R   (    (    sF   lib/python2.7/site-packages/nbconvert/exporters/tests/test_asciidoc.pyt   test_export_no_prompt4   s    (	   t   __name__t
   __module__t   __doc__R   t   exporter_classR   R   R   R   (    (    (    sF   lib/python2.7/site-packages/nbconvert/exporters/tests/test_asciidoc.pyR      s
   	(   R   R   t   traitlets.configR    t   baseR   t   asciidocR   t   tests.utilsR   R   R   R   (    (    (    sF   lib/python2.7/site-packages/nbconvert/exporters/tests/test_asciidoc.pyt   <module>   s   