Remove six[6]

Change-Id: I7bf782ac1aa2ff404bef180d9ff37ffcfb29001a
This commit is contained in:
chenke
2020-04-16 16:14:54 +08:00
parent de9d250537
commit 0ff8248f91

View File

@@ -27,7 +27,6 @@ from monascaclient.v2_0 import client as monclient_v2
from neutronclient.neutron import client as netclient from neutronclient.neutron import client as netclient
from neutronclient.v2_0 import client as netclient_v2 from neutronclient.v2_0 import client as netclient_v2
from novaclient import client as nvclient from novaclient import client as nvclient
import six
from watcher.common import clients from watcher.common import clients
from watcher import conf from watcher import conf
@@ -139,8 +138,7 @@ class TestClients(base.TestCase):
osc = clients.OpenStackClients() osc = clients.OpenStackClients()
osc._nova = None osc._nova = None
ex = self.assertRaises(ValueError, osc.nova) ex = self.assertRaises(ValueError, osc.nova)
self.assertIn('Invalid nova_client.api_version 2.47', self.assertIn('Invalid nova_client.api_version 2.47', str(ex))
six.text_type(ex))
@mock.patch.object(clients.OpenStackClients, 'session') @mock.patch.object(clients.OpenStackClients, 'session')
def test_clients_nova_diff_endpoint(self, mock_session): def test_clients_nova_diff_endpoint(self, mock_session):