'Tests the method send_http_request with valid parameters'

def test_send_http_request_valid(self):

    na_element = zapi_fakes.FAKE_NA_ELEMENT
    self.root._trace = True
    self.mock_object(self.root, '_create_request', return_value=('abc', zapi_fakes.FAKE_NA_ELEMENT))
    self.mock_object(netapp_api, 'LOG')
    self.root._opener = zapi_fakes.FAKE_HTTP_OPENER
    self.mock_object(self.root, '_build_opener')
    self.mock_object(self.root, '_get_result', return_value=zapi_fakes.FAKE_NA_ELEMENT)
    opener_mock = self.mock_object(self.root._opener, 'open')
    opener_mock.read.side_effect = ['resp1', 'resp2']
    self.root.send_http_request(na_element)
