Ñò \ÐKc @ s¦ d d k Z d d k Z d d k l Z l Z l Z l Z l Z d d k Td e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d S( iÿÿÿÿN( t LineSplittert NameValidatort StringConvertert has_nested_fieldst easy_dtype( t *t TestLineSplitterc B sD e Z d Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( s Tests the LineSplitter class.c C sc d } t ƒ | ƒ } t | d d d d d g ƒ t d ƒ | ƒ } t | d d d d d g ƒ d S( s Test LineSplitter w/o delimiters 1 2 3 4 5 # testt 1t 2t 3t 4t 5t N( R t assert_equal( t selft strgt test( ( sC /usr/lib64/python2.6/site-packages/numpy/lib/tests/test__iotools.pyt test_no_delimiter s c C s` d } t d ƒ | ƒ } t | d d d d d d g ƒ t d ƒ | ƒ } t | d d g ƒ d S( s Test space delimiters 1 2 3 4 5 # testt R R R R R R s s 1 2 3 4N( R R ( R R R ( ( sC /usr/lib64/python2.6/site-packages/numpy/lib/tests/test__iotools.pyt test_space_delimiter s c C sf d } t d ƒ | ƒ } t | d d d d d g ƒ d } t d ƒ | ƒ } t | d d d g ƒ d S( s Test tab delimiters 1 2 3 4 5 6s R R R R s 5 6s 1 2 3 4 5 6s 1 2s 3 4N( R R ( R R R ( ( sC /usr/lib64/python2.6/site-packages/numpy/lib/tests/test__iotools.pyt test_tab_delimiter s c C sr d } t d ƒ | ƒ } t | d d d d d d g ƒ d } t d ƒ | ƒ } t | d d d d d d g ƒ d S( s Test LineSplitter on delimiters 1,2,3,4,,5t ,R R R R R R s 1,2,3,4,,5 # testN( R R ( R R R ( ( sC /usr/lib64/python2.6/site-packages/numpy/lib/tests/test__iotools.pyt test_other_delimiter% s c C sŽ d } t d ƒ | ƒ } t | d d d d d d d g ƒ d } t d ƒ | ƒ } t | d g ƒ d } t d ƒ | ƒ } t | d g ƒ d S( s' Test LineSplitter w/ fixed-width fieldss 1 2 3 4 5 # testi R R R R R R s 1 3 4 5 6# testi s 1 3 4 5 6i N( R R ( R R R ( ( sC /usr/lib64/python2.6/site-packages/numpy/lib/tests/test__iotools.pyt test_constant_fixed_width/ s "c C sc d } t d ƒ | ƒ } t | d d d d g ƒ d } t d ƒ | ƒ } t | d d d g ƒ d S( Ns 1 3 4 5 6# testi i R R s 4 5t 6i s 3 4s 5 6( i i i i ( i i i ( R R ( R R R ( ( sC /usr/lib64/python2.6/site-packages/numpy/lib/tests/test__iotools.pyt test_variable_fixed_width= s ( t __name__t __module__t __doc__R R R R R R ( ( ( sC /usr/lib64/python2.6/site-packages/numpy/lib/tests/test__iotools.pyR s t TestNameValidatorc B s5 e Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( c C sÔ d d d d g } t ƒ i | ƒ } t | d d d d g ƒ t d t ƒ i | ƒ } t | d d d d g ƒ t d d ƒ i | ƒ } t | d d d d g ƒ t d d ƒ i | ƒ } t | d d d d g ƒ d S( s Test case sensitivityt At at bt ct case_sensitivet A_1t Bt Ct uppert lowert a_1N( R t validateR t False( R t namesR ( ( sC /usr/lib64/python2.6/site-packages/numpy/lib/tests/test__iotools.pyt test_case_sensitivityK s c C sV d d d d g } t d d d d g ƒ } | i | ƒ } t | d d d d g ƒ d S( s Test excludelistt datest datas Other Datat maskt excludelistt dates_t data_t Other_Datat mask_N( R R) R ( R R+ t validatorR ( ( sC /usr/lib64/python2.6/site-packages/numpy/lib/tests/test__iotools.pyt test_excludelistW s c C s• d } t ƒ } t | | ƒ d d d g ƒ d } t | | ƒ d d d g ƒ d } t | | ƒ d d d g ƒ d } t | | ƒ d d d g ƒ d S( s Test validate missing namesR R R! R t f0t f1t f2N( R R R! ( R R R! ( R R R ( R R7 R ( R R ( R t namelistR5 ( ( sC /usr/lib64/python2.6/site-packages/numpy/lib/tests/test__iotools.pyt test_missing_names^ s c C sZ d } t ƒ } t | | d d ƒd ƒ t | | d d d d ƒd d d d d g ƒ d S( s Test validate nb namesR R R! t nbfieldsi i t defaultfmts g%it g0t g1N( R R R! ( R ( R R ( R R: R5 ( ( sC /usr/lib64/python2.6/site-packages/numpy/lib/tests/test__iotools.pyt test_validate_nb_namesj s c C s5 d } t ƒ } t | | d d ƒd d d g ƒ d S( s Test validate no namesR<