Fixed old style class declaration

Change-Id: Ifc2f61146dd77c4c287c0adbf5410b51d564accf
Closes-bug: #1392771
This commit is contained in:
PavlovAndrey
2014-11-14 18:48:30 +03:00
parent 8cfc1d6a1f
commit e12a52d0c7
2 changed files with 6 additions and 6 deletions

View File

@@ -177,7 +177,7 @@ def register_config(config, config_group, config_opts):
@singleton
class ITConfig:
class ITConfig(object):
def __init__(self):
config = 'itest.conf'
config_files = []

View File

@@ -35,18 +35,18 @@ FAKE_ENV2 = {'OS_USERNAME': 'username',
'OS_AUTH_URL': 'http://no.where'}
class FakePlugin:
class FakePlugin(object):
name = 'fake'
versions = ['1.0', ]
title = 'a fake plugin'
class FakePluginManager:
class FakePluginManager(object):
def list(self):
return (FakePlugin(),)
class FakeImage:
class FakeImage(object):
name = 'fake'
id = 'aaa-bb-ccc'
username = 'you'
@@ -54,12 +54,12 @@ class FakeImage:
tags = []
class FakeImageManager:
class FakeImageManager(object):
def list(self):
return (FakeImage(),)
class FakePluginClient:
class FakePluginClient(object):
def __init__(self, *args, **kwargs):
self.plugins = FakePluginManager()
self.images = FakeImageManager()