U
    e»{jò  ã                   @   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d„ Zd	d
„ Zdd„ Zdd„ Ze jdd„ ƒZdd„ ZdS )é    N)Úconf)Ú
SAMPClient)ÚSAMPHubServer©ÚSAMPHubProxy©ÚSAMPIntegratedClientc                 C   s
   dt _d S )NF)r   Zuse_internet)Úmodule© r
   ú]/var/www/html/bwave/python/venv/lib/python3.8/site-packages/astropy/samp/tests/test_client.pyÚsetup_module   s    r   c                   C   s
   t ƒ  dS )z*Test that SAMPHubProxy can be instantiatedNr   r
   r
   r
   r   Útest_SAMPHubProxy   s    r   c                  C   s   t ƒ } t| ƒ dS )z(Test that SAMPClient can be instantiatedN)r   r   )Úproxyr
   r
   r   Útest_SAMPClient   s    r   c                   C   s
   t ƒ  dS )z2Test that SAMPIntegratedClient can be instantiatedNr   r
   r
   r
   r   Útest_SAMPIntegratedClient   s    r   c                 C   s   t ƒ }| ¡  |  |j¡ dS )z>A fixture that can be used by client tests that require a HUB.N)r   ÚstartZaddfinalizerÚstop)ÚrequestZmy_hubr
   r
   r   Úsamp_hub!   s    r   c                 C   s"   t ƒ }| ¡  | ¡  | ¡  dS )z“Test that SAMPIntegratedClient can reconnect.
    This is a regression test for bug [#2673]
    https://github.com/astropy/astropy/issues/2673
    N)r   ÚconnectZ
disconnect)r   Z	my_clientr
   r
   r   Útest_reconnect)   s    r   )ZpytestZastropy.sampr   Zastropy.samp.clientr   Zastropy.samp.hubr   Zastropy.samp.hub_proxyr   Zastropy.samp.integrated_clientr   r   r   r   r   Zfixturer   r   r
   r
   r
   r   Ú<module>   s   
