Package ganeti :: Package rapi :: Module testutils :: Class InputTestClient
[hide private]
[frames] | no frames]

Class InputTestClient

source code

Test version of RAPI client.

Instances of this class can be used to test input arguments for RAPI client calls. See rapi.client.GanetiRapiClient for available methods and their arguments. Functions can return NotImplemented if all arguments are acceptable, but a LUXI request would be necessary to provide an actual return value. In case of an error, VerificationError is raised.


See Also: An example on how to use this class can be found in doc/examples/rapi_testutils.py

Instance Methods [hide private]
 
__init__(self)
Initializes this class.
source code
 
_GetLuxiCalls(self)
Returns the names of all called LUXI client functions.
source code
 
__getattr__(self, name)
Finds method by name.
source code
Method Details [hide private]

__getattr__(self, name)
(Qualification operator)

source code 

Finds method by name.

The method is wrapped using _TestWrapper to produce the actual test result.