Fix old-style classes declaration
Change-Id: I8759dd64637e5150f6744d0989eaa5e584487f5e
This commit is contained in:
		| @@ -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 | ||||
|  | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Dina Belova
					Dina Belova