c90977b4f6
As part of the move towards testr and parallel test running, we start to use testtools and fixtures to make the test suite resilient and more pedantic. Part of blueprint grizzly-testtools Change-Id: I90250de9fe21237db34f6a50b89b15863e270aa5
28 lines
645 B
Python
28 lines
645 B
Python
# Copyright (C) 2009-2011 Nicira Networks, Inc. All Rights Reserved.
|
|
#
|
|
# This software is provided only under the terms and conditions of a written
|
|
# license agreement with Nicira. If no such agreement applies to you, you are
|
|
# not authorized to use this software. Contact Nicira to obtain an appropriate
|
|
# license: www.nicira.com.
|
|
|
|
import eventlet
|
|
eventlet.monkey_patch()
|
|
import logging
|
|
import urllib2
|
|
|
|
import testtools
|
|
|
|
logging.basicConfig(level=logging.DEBUG)
|
|
lg = logging.getLogger("test_nvp_api_request")
|
|
|
|
REQUEST_TIMEOUT = 1
|
|
|
|
|
|
def fetch(url):
|
|
return urllib2.urlopen(url).read()
|
|
|
|
|
|
class NvpApiRequestTest(testtools.TestCase):
|
|
|
|
pass
|