σ
ίΘ[c           @` s5  d  d l  m Z m Z m Z m Z d d l m Z d d l m Z d d l	 m
 Z
 d   Z i
 d% g d	 6d& d' g d 6d( d) g d 6d* d+ d, g d 6d- d. d/ g d 6d0 g d 6d1 d2 g d 6d3 d4 g d 6d5 d6 d7 g d 6d8 d9 d: g d 6Z d    Z e e  d!    Z e e  d"    Z e e  d#    Z d$ S(;   i    (   t   absolute_importt   divisiont   print_functiont   unicode_literalsi   (   t   six(   t   raisesi   (   t   ucdc           C` s   t  j d   s t  d  S(   N(   R   t	   check_ucdt   Nonet   AssertionError(    (    (    s@   lib/python2.7/site-packages/astropy/io/votable/tests/ucd_test.pyt	   test_none   s    u   ivoau   phys.temperatureu	   pos.eq.rau	   meta.mainu   pos.eq.ra;meta.mainu   meta.idu   srcu   meta.id;srcu	   phot.fluxu   em.radiou   arith.ratiou   phot.flux;em.radio;arith.ratiou#   PHot.Flux;EM.Radio;ivoa:arith.Ratiou   pos.galactic.latu	   meta.codeu   phot.magu   meta.code;phot.magu
   stat.erroru   stat.error;phot.magu   instru   stat.maxu   phys.temperature;instr;stat.maxu   em.opt.Vu   stat.error;phot.mag;em.opt.Vc          C` s`   xY t  j t  D]H \ }  } t j |  t t  | k s= t  t j |  t t  s t  q Wd  S(   N(   R   t	   iteritemst   examplesR   t	   parse_ucdt   TrueR	   R   (   t   st   p(    (    s@   lib/python2.7/site-packages/astropy/io/votable/tests/ucd_test.pyt
   test_check,   s    !c           C` s   t  j d t t  d  S(   Nu   ivoa:stsci:phot(   R   R   R   (    (    (    s@   lib/python2.7/site-packages/astropy/io/votable/tests/ucd_test.pyt   test_too_many_colons2   s    c           C` s   t  j d t t  d  S(   Nu   _ivoa:phot.mag(   R   R   R   (    (    (    s@   lib/python2.7/site-packages/astropy/io/votable/tests/ucd_test.pyt   test_invalid_namespace7   s    c           C` s   t  j d  d  S(   Nu   -pho(   R   R   (    (    (    s@   lib/python2.7/site-packages/astropy/io/votable/tests/ucd_test.pyt   test_invalid_word<   s    N(   u   ivoau   phys.temperature(   u   ivoau	   pos.eq.ra(   u   ivoau	   meta.main(   u   ivoau   meta.id(   u   ivoau   src(   u   ivoau	   phot.flux(   u   ivoau   em.radio(   u   ivoau   arith.ratio(   u   ivoau	   phot.flux(   u   ivoau   em.radio(   u   ivoau   arith.ratio(   u   ivoau   pos.galactic.lat(   u   ivoau	   meta.code(   u   ivoau   phot.mag(   u   ivoau
   stat.error(   u   ivoau   phot.mag(   u   ivoau   phys.temperature(   u   ivoau   instr(   u   ivoau   stat.max(   u   ivoau
   stat.error(   u   ivoau   phot.mag(   u   ivoau   em.opt.V(   t
   __future__R    R   R   R   t   externR   t   tests.helperR   t    R   R
   R   R   t
   ValueErrorR   R   R   (    (    (    s@   lib/python2.7/site-packages/astropy/io/votable/tests/ucd_test.pyt   <module>   s(   "	


	