#NEWLINE# def test_ignoring_http_responses_with_no_auth_info( self ) : #NEWLINE# #INDENT# call_info = { #NEWLINE# #INDENT# 'container' : 'someContainer' , #NEWLINE# 'name' : 'someName' , #NEWLINE# #UNINDENT# } #NEWLINE# self . mock_token_data_lock . should_receive ( 'acquire' ) . never #NEWLINE# self . mock_token_data_lock . should_receive ( 'release' ) . never #NEWLINE# self . mock_client . should_receive ( 'get_auth' ) . never #NEWLINE# self . mock_worker . should_receive ( '_create_connection_pool' ) . never #NEWLINE# flexmock ( gevent ) . should_receive ( 'sleep' ) . never #NEWLINE# assert_raises ( ValueError , self . worker . ignoring_http_responses , [ ] , self . stub_fn , self , extra_key = 'extra value' )