ó
ěxTc           @   sL   d  d l  m Z d   Z e d k rH d  d l Z e d e j d  n  d S(   i˙˙˙˙(   t   divisionc   	      C   sá   t  |   d k s t  d d  l } d d  l } | j } | j j d d d d  } | j |  si t  d d l m	 } d d l
 m } |   } | j d	 | d
 |  d d l m } | | j   d |  sŘ t  d GHd  S(   Ni    i˙˙˙˙t   module_namet   cbflibt   paths   examples/fit2d_data.cbf(   t   dump(   t   StringIOt	   file_namet   out(   t	   show_diffs  File name: %s
Number of blocks: 1
  Block name: image_1
  Number of categories: 12
    Category name: diffrn
    Category name: diffrn_source
    Category name: diffrn_radiation
    Category name: diffrn_radiation_wavelength
    Category name: diffrn_measurement
    Category name: diffrn_detector
    Category name: diffrn_detector_element
    Category name: diffrn_data_frame
    Category name: array_structure_list
    Category name: array_element_size
    Category name: array_intensities
    Category name: array_data

t   OK(   t   lent   AssertionErrort   libtbx.load_envt   osR   t   envt
   under_distt   isfilet   cbflib_adaptbx.command_lineR   t	   cStringIOR   t   processt   libtbx.test_utilsR   t   getvalue(	   t   argst   libtbxR   t   opt   cbfR   R   t   sioR   (    (    sF   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/cbflib_adaptbx/run_tests.pyt   run   s     			t   __main__NR   i   (   t
   __future__R    R   t   __name__t   syst   argv(    (    (    sF   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/cbflib_adaptbx/run_tests.pyt   <module>   s   	#