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, allow_non_master=None)
Initializes this class.
source code
 
Close(self) source code
 
Call(self, data)
Calls LUXI method.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, record_fn, address, timeouts=None, allow_non_master=None)
(Constructor)

source code 

Initializes this class.

Overrides: object.__init__

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.