blazar/climate/tests/utils/__init__.py
Nikolaj Starodubtsev 19cc43f79a Add utils to work with OpenStack components
Add utils to do basic actions with nova and keystone.
We decide to store in utils/openstack/%service_name.py service
specific clients in classes named like Climate%service_name%Client.
In this classes we define service client with specific variables.
Also, we redefine __getattr__ like this:

   def __getattr__(self, name):
       fn = getattr(self.%service_name, name)
       return fn

Change-Id: I47e0d8689f1d8ca8aba0372eb5e7a4a80f2f9be5
2014-01-22 20:42:18 +04:00

0 lines
Python