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

Class _TestLuxiTransport

source code

Mocked LUXI transport.

Raises errors.RapiTestResult for all method calls, no matter the arguments.

Instance Methods [hide private]
 
__init__(self, record_fn, address, timeouts=None)
Initializes this class.
source code
 
Close(self) source code
 
Call(self, data)
Calls LUXI method.
source code
Method Details [hide private]

Call(self, data)

source code 

Calls LUXI method.

In this test class the method is not actually called, but added to a list of called methods and then an exception (errors.RapiTestResult) is raised. There is no return value.