ó
Ë½÷Xc           @` sÅ   d  d l  m Z m Z m Z d  d l Z d  d l m Z m Z m Z m	 Z	 d  d l
 m Z m Z m Z m Z d „  Z d „  Z d „  Z d „  Z d	 „  Z d
 „  Z d „  Z e d k rÁ e ƒ  n  d S(   i    (   t   divisiont   print_functiont   absolute_importN(   t	   constantst   codatat   findt   value(   t   assert_equalt   assert_t   run_module_suitet   assert_almost_equalc          C` s«   t  j ƒ  ™ t  j d t ƒ 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
 ƒ ƒ Wd  QXd  S(   Nt   ignores   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(   t   warningst   catch_warningst   simplefiltert   DeprecationWarningR   t   FalseR   t   sorted(   t   keys(    (    s@   /tmp/pip-build-7oUkmx/scipy/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@   /tmp/pip-build-7oUkmx/scipy/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@   /tmp/pip-build-7oUkmx/scipy/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@   /tmp/pip-build-7oUkmx/scipy/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@   /tmp/pip-build-7oUkmx/scipy/scipy/constants/tests/test_codata.pyt   test_find_single0   s    c           C` s#   t  t j d ƒ t j d ƒ ƒ d  S(   Ns   magn. flux quantums   mag. flux quantum(   R
   R   R   (    (    (    s@   /tmp/pip-build-7oUkmx/scipy/scipy/constants/tests/test_codata.pyt   test_2002_vs_20065   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@   /tmp/pip-build-7oUkmx/scipy/scipy/constants/tests/test_codata.pyt   test_exact_values:   s    t   __main__(   t
   __future__R    R   R   R   t   scipy.constantsR   R   R   R   t   numpy.testingR   R   R	   R
   R   R   R   R   R   R   R!   t   __name__(    (    (    s@   /tmp/pip-build-7oUkmx/scipy/scipy/constants/tests/test_codata.pyt   <module>   s   ""							