def setUp(self):

        super(NvpApiRequestEventletTest, self).setUp()
        self.client = nace.NvpApiClientEventlet([("127.0.0.1", 4401, True)],
                                                "admin", "admin")
        self.url = "/ws.v1/_debug"
        self.req = nare.NvpApiRequestEventlet(self.client, self.url)
 def test_apirequest_start(self):
     for i in range(10):
         a = nare.NvpApiRequestEventlet(self.client,
                                        self.url,
                                        request_timeout=0.1)
         a._handle_request = Mock()
         a.start()
         eventlet.greenthread.sleep(0.1)
         logging.info('_handle_request called: %s' %
                      a._handle_request.called)
     nare.NvpApiRequestEventlet.joinall()
 def test_construct_eventlet_api_request(self):
     e = nare.NvpApiRequestEventlet(self.client, self.url)
     self.assertTrue(e is not None)