#NEWLINE# @ mock . patch ( ( '%s.open' % _OPENER_DIRECTOR ) , mock . MagicMock ( side_effect = URLError ( '' ) ) ) #NEWLINE# def test_register_server_url_errors( self ) : #NEWLINE# #INDENT# ( code , msg ) = self . _test_register_server_errors ( ) #NEWLINE# self . assertEqual ( code , 500 )