ó
]¹èZc           @   sT   d  d l  Z  d d l m Z d d l m Z d „  Z d „  Z d „  Z d „  Z d S(	   iÿÿÿÿNi   (   t   SAMPHubServer(   t   confc         C   s   t  t _ d  S(   N(   t   FalseR   t   use_internet(   t   module(    (    s:   lib/python2.7/site-packages/astropy/samp/tests/test_hub.pyt   setup_module
   s    c           C   s   t  d t d d d d ƒ d S(   s%   Test that SAMPHub can be instantiatedt   web_profilet   modet   multiplet	   pool_sizei   N(   R    R   (    (    (    s:   lib/python2.7/site-packages/astropy/samp/tests/test_hub.pyt   test_SAMPHubServer   s    c          C   s@   t  d t d d d d ƒ }  |  j ƒ  t j d ƒ |  j ƒ  d S(   s   Test that SAMPHub can be runR   R   R   R	   i   N(   R    R   t   startt   timet   sleept   stop(   t   hub(    (    s:   lib/python2.7/site-packages/astropy/samp/tests/test_hub.pyt   test_SAMPHubServer_run   s    
c          C   sn   t  d t d d d d ƒ }  |  j ƒ  t j d ƒ |  j ƒ  t j d ƒ |  j ƒ  t j d ƒ |  j ƒ  d S(   sz   
    Test that SAMPHub can be restarted after it has been stopped, including
    when web profile support is enabled.
    R   R   R   R	   i   N(   R    t   TrueR   R   R   R   (   R   (    (    s:   lib/python2.7/site-packages/astropy/samp/tests/test_hub.pyt   test_SAMPHubServer_run_repeated   s    


(	   R   R   R    t    R   R   R
   R   R   (    (    (    s:   lib/python2.7/site-packages/astropy/samp/tests/test_hub.pyt   <module>   s   			