def assert_server_running(server):
 if (server.poll() is not None):
  raise RuntimeError('Server died unexpectedly!')

def assert_server_running ( server ) : if ( server . poll ( ) is not None ) : raise RuntimeError ( 'Server died unexpectedly!' )
get the exit code of the server .