ó
áp7]c           @   s\   d  d l  m Z m Z d  d l m Z d  d l m Z d  d l Z d e f d „  ƒ  YZ	 d S(   iÿÿÿÿ(   t   _generate_urlt   webdoc(   t   OLS(   t   arrayNt   TestWebc           B   s,   e  Z d  „  Z d „  Z d „  Z d „  Z RS(   c         C   sg   t  d t ƒ } | d k s! t ‚ t  d t ƒ } | d k sB t ‚ t  d t ƒ } | d k sc t ‚ d  S(   Nt   archsU   https://www.statsmodels.org/stable/search.html?q=arch&check_keywords=yes&area=defaultsT   https://www.statsmodels.org/devel/search.html?q=arch&check_keywords=yes&area=defaults   dickey fullers]   https://www.statsmodels.org/devel/search.html?q=dickey+fuller&check_keywords=yes&area=default(   R    t   Truet   AssertionErrort   False(   t   selft   url(    (    s?   lib/python2.7/site-packages/statsmodels/tools/tests/test_web.pyt   test_string   s    c         C   sF   t  t t ƒ } | d k s! t ‚ t  t t ƒ } | d k sB t ‚ d  S(   NsY   https://www.statsmodels.org/stable/generated/statsmodels.regression.linear_model.OLS.htmlsX   https://www.statsmodels.org/devel/generated/statsmodels.regression.linear_model.OLS.html(   R    R   R   R   R   (   R	   R
   (    (    s?   lib/python2.7/site-packages/statsmodels/tools/tests/test_web.pyt   test_function   s    c         C   sF   t  d  t ƒ } | d k s! t ‚ t  d  t ƒ } | d k sB t ‚ d  S(   Ns#   https://www.statsmodels.org/stable/s"   https://www.statsmodels.org/devel/(   R    t   NoneR   R   R   (   R	   R
   (    (    s?   lib/python2.7/site-packages/statsmodels/tools/tests/test_web.pyt   test_nothing   s    c         C   sJ   t  j t ƒ  t t t ƒ Wd  QXt  j t ƒ  t d t ƒ Wd  QXd  S(   Ni   (   t   pytestt   raisest
   ValueErrorR   R   R   R   (   R	   (    (    s?   lib/python2.7/site-packages/statsmodels/tools/tests/test_web.pyt   test_errors   s    (   t   __name__t
   __module__R   R   R   R   (    (    (    s?   lib/python2.7/site-packages/statsmodels/tools/tests/test_web.pyR      s   			(
   t   statsmodels.tools.webR    R   t#   statsmodels.regression.linear_modelR   t   numpyR   R   t   objectR   (    (    (    s?   lib/python2.7/site-packages/statsmodels/tools/tests/test_web.pyt   <module>   s   