
&]\c           @` s   d  d l  m Z m Z m Z d  d l m Z m Z m Z m Z d  d l	 m
 Z
 m Z m Z d   Z d   Z d   Z d   Z d   Z d	   Z d
   Z d S(   i    (   t   divisiont   print_functiont   absolute_import(   t	   constantst   codatat   findt   value(   t   assert_equalt   assert_t   assert_almost_equalc          C` s   t  d d t }  t |  d g  t  d d t }  t |  g   t  d d t }  t |  t d d d d	 d
 d d d d d g
   d  S(   Ns   weak mixingt   disps   weak mixing anglet
   qwertyuiops   natural units   natural unit of velocitys   natural unit of actions   natural unit of action in eV ss   natural unit of masss   natural unit of energys   natural unit of energy in MeVs   natural unit of mom.ums   natural unit of mom.um in MeV/cs   natural unit of lengths   natural unit of time(   R   t   FalseR   t   sorted(   t   keys(    (    s@   lib/python2.7/site-packages/scipy/constants/tests/test_codata.pyt	   test_find   s    c          C` s<   d }  t  t j |   t j  t  t j |   t j  d  S(   Ns   speed of light in vacuum(   R   R   R   R   t   ct   speed_of_light(   R   (    (    s@   lib/python2.7/site-packages/scipy/constants/tests/test_codata.pyt   test_basic_table_parse   s    c           C` s'   t  d t j t j d  f d  d  S(   Ns   %d %ss   speed of light in vacuums   299792458 m s^-1(   R   R   R   t   unit(    (    (    s@   lib/python2.7/site-packages/scipy/constants/tests/test_codata.pyt   test_basic_lookup"   s    c           C` s&   t  t t j d t   d k  d  S(   NR
   i,  (   R   t   lenR   R   R   (    (    (    s@   lib/python2.7/site-packages/scipy/constants/tests/test_codata.pyt   test_find_all'   s    c           C` s$   t  t j d d t d d  d  S(   Ns	   Wien freqR
   i    s(   Wien frequency displacement law constant(   R   R   R   R   (    (    (    s@   lib/python2.7/site-packages/scipy/constants/tests/test_codata.pyt   test_find_single+   s    c           C` s#   t  t j d  t j d   d  S(   Ns   magn. flux quantums   mag. flux quantum(   R	   R   R   (    (    (    s@   lib/python2.7/site-packages/scipy/constants/tests/test_codata.pyt   test_2002_vs_20060   s    c          C` sG   x@ t  j D]5 }  t t  j |  d t |   t |   d k  q
 Wd  S(   Ni    (   R   t   exact_valuesR   R   (   t   key(    (    s@   lib/python2.7/site-packages/scipy/constants/tests/test_codata.pyt   test_exact_values5   s    N(   t
   __future__R    R   R   t   scipy.constantsR   R   R   R   t   numpy.testingR   R   R	   R   R   R   R   R   R   R   (    (    (    s@   lib/python2.7/site-packages/scipy/constants/tests/test_codata.pyt   <module>   s   "						