Fix some version typo

Change-Id: Ieac75bf2c820baf7e449fb269461881fa2ffee24
This commit is contained in:
liusheng 2017-02-20 11:14:52 +08:00
parent 62762c0724
commit 2193dd2c3f
5 changed files with 9 additions and 9 deletions

View File

@ -24,11 +24,11 @@ class TestBase(utils.TestCommand):
pass
class TestBaremetalComputeV1(TestBase):
"""Test case base class for the unit tests of Baremetal Compute V1 API."""
class TestEventV2(TestBase):
"""Test case base class for the unit tests of Event server V1 API."""
def setUp(self):
super(TestBaremetalComputeV1, self).setUp()
super(TestEventV2, self).setUp()
fake_client = fakes.FakeBaremetalComputeV1Client()
fake_client = fakes.FakeTestEventV2Client()
self.app.client_manager.event = fake_client

View File

@ -50,7 +50,7 @@ def create_resource_manager():
return FakeManager()
class FakeBaremetalComputeV1Client(object):
class FakeTestEventV2Client(object):
def __init__(self, **kwargs):
self.fake_http_client = mock.Mock()

View File

@ -21,9 +21,9 @@ from pankoclient.osc import plugin
from pankoclient.tests.unit import base
class TestBaremetalComputePlugin(base.TestBase):
class TestEventPlugin(base.TestBase):
@mock.patch('pankoclient.v1.client.Client')
@mock.patch('pankoclient.v2.client.Client')
def test_make_client_with_session(self, panko_client):
instance = mock.Mock()
instance._api_version = {
@ -50,7 +50,7 @@ class TestBaremetalComputePlugin(base.TestBase):
session='fake_session',
)
@mock.patch('pankoclient.v1.client.Client')
@mock.patch('pankoclient.v2.client.Client')
def test_make_client_no_session(self, panko_client):
instance = mock.Mock()
instance._api_version = {

View File

@ -22,7 +22,7 @@ class Client(object):
"""Client for the Panko v2 API."""
def __init__(self, *args, **kwargs):
"""Initialize a new client for the Panko v1 API."""
"""Initialize a new client for the Panko v2 API."""
self.http_client = http._construct_http_client(*args, **kwargs)
self.capabilities = capabilities.CapabilitiesManager(self.http_client)
self.event = events.EventManager(self.http_client)