Merge "Fix old-style classes declaration"

This commit is contained in:
Jenkins
2014-12-10 11:22:55 +00:00
committed by Gerrit Code Review
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