
    IR-eO                         d dl Z d dlmZ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 ZdS )    N)SAMPWarningconf)
SAMPClient)SAMPHubServerSAMPHubProxySAMPIntegratedClientc                     dt           _        d S )NF)r   use_internet)modules    >lib/python3.11/site-packages/astropy/samp/tests/test_client.pysetup_moduler      s    D    c                  "    t                       dS )z*Test that SAMPHubProxy can be instantiatedNr    r   r   test_SAMPHubProxyr      s    NNNNNr   c                  @    t                      } t          |            dS )z(Test that SAMPClient can be instantiatedN)r   r   )proxys    r   test_SAMPClientr      s    NNEur   c                  "    t                       dS )z2Test that SAMPIntegratedClient can be instantiatedNr	   r   r   r   test_SAMPIntegratedClientr      s    r   c                 ~    t                      }|                                 |                     |j                   dS )z>A fixture that can be used by client tests that require a HUB.N)r   startaddfinalizerstop)requestmy_hubs     r   samp_hubr   !   s6     __F
LLNNN%%%%%r   c                    t                      }|                                 ddi}t          j        t                    5  |                    |           ddd           n# 1 swxY w Y   |                                 dS )z@Test that SAMP returns a warning if no receiver got the message.z
samp.mtypezcoverage.load.moc.fitsN)r
   connectpytestwarnsr   
notify_all
disconnect)r   clientmessages      r   $test_SAMPIntegratedClient_notify_allr(   )   s    !##F
NN56G	k	"	" # #'"""# # # # # # # # # # # # # # #
s    A""A&)A&c                     t                      }|                                 |                                 |                                 dS )zTest that SAMPIntegratedClient can reconnect.
    This is a regression test for bug [#2673]
    https://github.com/astropy/astropy/issues/2673
    N)r
   r!   r%   )r   	my_clients     r   test_reconnectr+   3   sK    
 %&&Ir   )r"   astropy.sampr   r   astropy.samp.clientr   astropy.samp.hubr   astropy.samp.hub_proxyr   astropy.samp.integrated_clientr
   r   r   r   r   fixturer   r(   r+   r   r   r   <module>r2      s     + * * * * * * * * * * * * * * * * * * * / / / / / / ? ? ? ? ? ?    
    
 & & &      r   