def test_SAMPHubServer_run_repeated():
 hub = SAMPHubServer(web_profile=True, mode='multiple', pool_size=1)
 hub.start()
 time.sleep(1)
 hub.stop()
 time.sleep(1)
 hub.start()
 time.sleep(1)
 hub.stop()

def test_SAMPHubServer_run_repeated ( ) : hub = SAMPHubServer ( web_profile = True , mode = 'multiple' , pool_size = 1 ) hub . start ( ) time . sleep ( 1 ) hub . stop ( ) time . sleep ( 1 ) hub . start ( ) time . sleep ( 1 ) hub . stop ( )
test that samphub can be restarted after it has been stopped .