Fix old-style classes declaration

Change-Id: I8759dd64637e5150f6744d0989eaa5e584487f5e
This commit is contained in:
Dina Belova
2014-12-10 13:13:57 +03:00
parent 27a810146b
commit dd67d3bd25
2 changed files with 5 additions and 5 deletions

View File

@@ -29,19 +29,19 @@ def fake_headers():
'User-Agent': 'python-ceilometerclient'}
class FakeServiceCatalog():
class FakeServiceCatalog(object):
def url_for(self, endpoint_type, service_type):
return 'http://192.168.1.5:8004/v1/f14b41234'
class FakeKeystone():
class FakeKeystone(object):
service_catalog = FakeServiceCatalog()
def __init__(self, auth_token):
self.auth_token = auth_token
class FakeHTTPResponse():
class FakeHTTPResponse(object):
version = 1.1

View File

@@ -25,7 +25,7 @@ from ceilometerclient.tests import utils as test_utils
class UtilsTest(test_utils.BaseTestCase):
def test_prettytable(self):
class Struct:
class Struct(object):
def __init__(self, **entries):
self.__dict__.update(entries)
@@ -74,7 +74,7 @@ class UtilsTest(test_utils.BaseTestCase):
''', stdout.getvalue())
def test_print_list(self):
class Foo:
class Foo(object):
def __init__(self, one, two, three):
self.one = one
self.two = two