'Tests method _create_request'

def test__create_request(self):

    self.root._ns = zapi_fakes.FAKE_XML_STR
    self.root._api_version = '1.20'
    self.mock_object(self.root, '_enable_tunnel_request')
    self.mock_object(netapp_api.NaElement, 'add_child_elem')
    self.mock_object(netapp_api.NaElement, 'to_string', return_value=zapi_fakes.FAKE_XML_STR)
    mock_invoke = self.mock_object(urllib.request, 'Request')
    self.root._create_request(zapi_fakes.FAKE_NA_ELEMENT, True)
    self.assertTrue(mock_invoke.called)
