#NEWLINE# def test_raises_http_client_error_for_400_response( self ) : #NEWLINE# #INDENT# resp = mock . MagicMock ( ) #NEWLINE# resp . status_code = 400 #NEWLINE# self . assertRaises ( exceptions . HTTPClientError , self . httpclient . _check_status_code , resp )