ó
]¹èZc           @   sŸ   d  d l  Z  d d l m Z d d l m Z d d l m Z d d l m Z d d l	 m
 Z
 d „  Z d	 „  Z d
 „  Z d „  Z e  j d „  ƒ Z d „  Z d S(   iÿÿÿÿNi   (   t   SAMPHubProxy(   t
   SAMPClient(   t   SAMPIntegratedClient(   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_client.pyt   setup_module   s    c           C   s   t  ƒ  d S(   s*   Test that SAMPHubProxy can be instantiatedN(   R    (    (    (    s=   lib/python2.7/site-packages/astropy/samp/tests/test_client.pyt   test_SAMPHubProxy   s    c          C   s   t  ƒ  }  t |  ƒ d S(   s(   Test that SAMPClient can be instantiatedN(   R    R   (   t   proxy(    (    s=   lib/python2.7/site-packages/astropy/samp/tests/test_client.pyt   test_SAMPClient   s    	c           C   s   t  ƒ  d S(   s2   Test that SAMPIntegratedClient can be instantiatedN(   R   (    (    (    s=   lib/python2.7/site-packages/astropy/samp/tests/test_client.pyt   test_SAMPIntegratedClient   s    c         C   s'   t  ƒ  } | j ƒ  |  j | j ƒ d S(   s>   A fixture that can be used by client tests that require a HUB.N(   R   t   startt   addfinalizert   stop(   t   requestt   my_hub(    (    s=   lib/python2.7/site-packages/astropy/samp/tests/test_client.pyt   samp_hub"   s    	
c         C   s+   t  ƒ  } | j ƒ  | j ƒ  | j ƒ  d S(   s“   Test that SAMPIntegratedClient can reconnect.
    This is a regression test for bug [#2673]
    https://github.com/astropy/astropy/issues/2673
    N(   R   t   connectt
   disconnect(   R   t	   my_client(    (    s=   lib/python2.7/site-packages/astropy/samp/tests/test_client.pyt   test_reconnect*   s    	

(   t   pytestt	   hub_proxyR    t   clientR   t   integrated_clientR   t   hubR   t    R   R   R	   R   R   t   fixtureR   R   (    (    (    s=   lib/python2.7/site-packages/astropy/samp/tests/test_client.pyt   <module>   s   				