#NEWLINE# def test_callServer_socketError( self ) : #NEWLINE# #INDENT# ' test _callServer() - Server raises a socket Error (IOError) ' #NEWLINE# bad_server_url = 'http://111.222.333.4/testlink/lib/api/xmlrpc.php' #NEWLINE# client = TestLinkHelper ( bad_server_url ) . connect ( TestlinkAPIClient ) #NEWLINE# def a_func( api_client ) : #NEWLINE# #INDENT# api_client . _callServer ( 'sayHello' ) #NEWLINE# #UNINDENT# self . assertRaises ( testlinkerrors . TLConnectionError , a_func , bad_server_url )