ó
§‰]c           @   s@   d  Z  d d l m Z d d l m Z d e f d „  ƒ  YZ d S(   s7   
Module with tests for the clearmetadata preprocessor.
i   (   t   PreprocessorTestsBasei   (   t   ClearMetadataPreprocessort   TestClearMetadatac           B   s2   e  Z d  Z d „  Z d „  Z d „  Z d „  Z RS(   s,   Contains test functions for clearmetadata.pyc         C   ss   t  t |  ƒ j ƒ  } d | j d k r; i  | j d _ n  d | j d j d <t d
 d g ƒ | j d j d	 <| S(   Nt   metadatai    t
   test_valuet
   test_fieldt   end_times   09:31:50t
   start_times   09:31:49t   executeTime(   R   s   09:31:50(   R   s   09:31:49(   t   superR   t   build_notebookt   cellsR   t   dict(   t   selft   notebook(    (    sO   lib/python2.7/site-packages/nbconvert/preprocessors/tests/test_clearmetadata.pyR
      s    c         C   s   t  ƒ  } t | _ | S(   s"   Make an instance of a preprocessor(   R   t   Truet   enabled(   R   t   preprocessor(    (    sO   lib/python2.7/site-packages/nbconvert/preprocessors/tests/test_clearmetadata.pyt   build_preprocessor   s    		c         C   s   |  j  ƒ  d S(   s/   Can a ClearMetadataPreprocessor be constructed?N(   R   (   R   (    (    sO   lib/python2.7/site-packages/nbconvert/preprocessors/tests/test_clearmetadata.pyt   test_constructor   s    c         C   sT   |  j  ƒ  } |  j ƒ  } |  j ƒ  } | | | ƒ \ } } | j d j sP t ‚ d S(   s0   Test the output of the ClearMetadataPreprocessori    N(   R
   t   build_resourcesR   R   R   t   AssertionError(   R   t   nbt   resR   (    (    sO   lib/python2.7/site-packages/nbconvert/preprocessors/tests/test_clearmetadata.pyt   test_output#   s
    (   t   __name__t
   __module__t   __doc__R
   R   R   R   (    (    (    sO   lib/python2.7/site-packages/nbconvert/preprocessors/tests/test_clearmetadata.pyR      s
   	
		N(   R   t   baseR    t   clearmetadataR   R   (    (    (    sO   lib/python2.7/site-packages/nbconvert/preprocessors/tests/test_clearmetadata.pyt   <module>   s   