#NEWLINE# @ patch ( 'azurectl.management.request_result.time.sleep' ) #NEWLINE# @ raises ( AzureRequestTimeout ) #NEWLINE# def test_wait_for_request_completion_timeout( self , mock_time ) : #NEWLINE# #INDENT# MyStatus = namedtuple ( 'MyStatus' , 'status' ) #NEWLINE# status = MyStatus ( status = 'InProgress' ) #NEWLINE# self . service . get_operation_status . return_value = MyStatus #NEWLINE# self . request_result . wait_for_request_completion ( self . service ) #NEWLINE# self . service . get_operation_status . assert_called_once_with ( 42 )