Device Detection services for 51Degrees Pipeline

tests.test_hardwareprofile_cloud._FakeFlowData Class Reference

Detailed Description

Stands in for a FlowData carrying a fixed cloud response, so the engine can be tested with no network connection and no resource key.

Public Member Functions

 __init__ (self, response)
 get (self, key)
 set_element_data (self, data)

Public Attributes

 element_data = None

Protected Attributes

 _response = response

Constructor & Destructor Documentation

◆ __init__()

tests.test_hardwareprofile_cloud._FakeFlowData.__init__ ( self,
response )

Member Function Documentation

◆ get()

tests.test_hardwareprofile_cloud._FakeFlowData.get ( self,
key )

◆ set_element_data()

tests.test_hardwareprofile_cloud._FakeFlowData.set_element_data ( self,
data )

Member Data Documentation

◆ _response

tests.test_hardwareprofile_cloud._FakeFlowData._response = response
protected

◆ element_data

tests.test_hardwareprofile_cloud._FakeFlowData.element_data = None