Module Import alias Import alias ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Assign NameStore ListLoad TupleLoad Str Call NameLoad keyword Num keyword Str keyword Str TupleLoad Str Call NameLoad keyword Num keyword Str keyword Num TupleLoad Str Call NameLoad keyword Str keyword Str keyword Num TupleLoad Str Call NameLoad keyword Num keyword Str keyword Str TupleLoad Str Call NameLoad keyword Str keyword Str keyword Num TupleLoad Str Call NameLoad keyword Num keyword Str keyword Num FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore ListLoad TupleLoad Str Call NameLoad keyword Num keyword Str TupleLoad Str Call NameLoad keyword Num keyword Str TupleLoad Str Call NameLoad keyword Num keyword Str TupleLoad Str Call NameLoad keyword Num keyword Str TupleLoad Str Call NameLoad keyword Str keyword Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Str attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Str attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Str attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Str attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Str attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Dict Str Str Str Str Str Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Dict Str Str Str Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str keyword Str Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list decorator_list Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str Call NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list decorator_list Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str ClassDef bases AttributeLoad NameLoad attr body Assign NameStore ListLoad TupleLoad Str Call NameLoad keyword Dict Str Str Str Str TupleLoad Str Call NameLoad keyword Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list
N/A N/A json N/A mock solum.api.controllers.v1.datamodel sensor model solum.api.controllers.v1 sensor controller solum.common exception solum objects solum.tests base solum.tests fakes TestSensorValueTypeGood N/A N/A base BaseTestCase N/A N/A scenarios N/A N/A int_str N/A dict in_value 3 in_type str out_value 3 N/A int_int N/A dict in_value 3 in_type int out_value 3 N/A str_int N/A dict in_value 3 in_type int out_value 3 N/A float_str N/A dict in_value 3.4 in_type str out_value 3.4 N/A str_float N/A dict in_value 2.45 in_type float out_value 2.45 N/A float_float N/A dict in_value 2.45 in_type float out_value 2.45 test_values N/A N/A self N/A N/A N/A s N/A N/A model Sensor sensor_type N/A self in_type value N/A self in_value N/A N/A N/A self assertEqual N/A self out_value N/A s value N/A N/A TestSensorValueTypeBad N/A N/A base BaseTestCase N/A N/A scenarios N/A N/A sp_int N/A dict in_value 3.2 in_type int N/A bp_int N/A dict in_value 3.7 in_type int N/A sn_int N/A dict in_value -3.1 in_type int N/A bn_int N/A dict in_value -3.9 in_type int N/A float N/A dict in_value sunny in_type float test_values N/A N/A self N/A N/A N/A s N/A N/A model Sensor sensor_type N/A self in_type value N/A self in_value N/A N/A N/A self assertRaises ValueError getattr s value N/A N/A TestSensorController N/A N/A base BaseTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestSensorController self setUp N/A N/A N/A objects load N/A test_sensor_get N/A N/A self handler_mock resp_mock request_mock N/A N/A N/A handler_get N/A N/A handler_mock return_value get N/A fake_sensor N/A N/A fakes FakeSensor N/A N/A handler_get return_value fake_sensor N/A obj N/A N/A controller SensorController test_id N/A result N/A N/A obj get N/A N/A N/A self assertIsNotNone result N/A N/A N/A self assertEqual N/A fake_sensor name N/A N/A result N/A result name N/A N/A N/A self assertEqual N/A fake_sensor documentation N/A N/A result N/A result documentation N/A N/A N/A self assertEqual N/A fake_sensor description N/A N/A result N/A result description N/A N/A N/A self assertEqual N/A fake_sensor project_id N/A N/A result N/A result project_id N/A N/A N/A self assertEqual N/A fake_sensor uuid N/A N/A result N/A result uuid N/A N/A N/A self assertEqual 200 N/A resp_mock status N/A N/A N/A self assertIsNotNone result N/A N/A N/A handler_get assert_called_once_with test_id N/A test_sensor_get_not_found N/A N/A self handler_mock resp_mock request_mock N/A N/A N/A handler_get N/A N/A handler_mock return_value get N/A N/A handler_get side_effect N/A N/A exception ResourceNotFound name sensor sensor_id test_id N/A obj N/A N/A controller SensorController test_id N/A N/A N/A obj get N/A N/A N/A self assertEqual 404 N/A resp_mock status N/A N/A N/A handler_get assert_called_once_with test_id N/A test_sensor_put N/A N/A self handler_mock resp_mock request_mock N/A N/A N/A json_update N/A description value name foo 1234 test_name_changed N/A N/A request_mock body N/A N/A json dumps json_update N/A N/A request_mock content_type application/json N/A handler_update N/A N/A handler_mock return_value update N/A N/A handler_update return_value N/A N/A fakes FakeSensor N/A obj N/A N/A controller SensorController test_id N/A N/A N/A obj put N/A N/A fakes FakeSensor N/A N/A N/A self assertEqual 200 N/A resp_mock status N/A N/A N/A handler_update assert_called_once_with test_id json_update N/A test_sensor_put_none N/A N/A self handler_mock resp_mock request_mock N/A N/A N/A N/A request_mock body None N/A N/A request_mock content_type application/json N/A handler_put N/A N/A handler_mock return_value put N/A N/A handler_put return_value N/A N/A fakes FakeSensor N/A N/A N/A N/A N/A controller SensorController test_id put N/A N/A N/A self assertEqual 400 N/A resp_mock status N/A test_sensor_put_not_found N/A N/A self handler_mock resp_mock request_mock N/A N/A N/A json_update N/A name value hb42 0 N/A N/A request_mock body N/A N/A json dumps json_update N/A N/A request_mock content_type application/json N/A handler_update N/A N/A handler_mock return_value update N/A N/A handler_update side_effect N/A N/A exception ResourceNotFound name sensor sensor_id test_id N/A N/A N/A N/A N/A controller SensorController test_id put N/A N/A N/A handler_update assert_called_with test_id json_update N/A N/A N/A self assertEqual 404 N/A resp_mock status N/A test_sensor_delete N/A N/A self mock_handler resp_mock request_mock N/A N/A N/A handler_delete N/A N/A mock_handler return_value delete N/A N/A handler_delete return_value None N/A obj N/A N/A controller SensorController test_id N/A N/A N/A obj delete N/A N/A N/A handler_delete assert_called_with test_id N/A N/A N/A self assertEqual 204 N/A resp_mock status N/A test_sensor_delete_not_found N/A N/A self mock_handler resp_mock request_mock N/A N/A N/A handler_delete N/A N/A mock_handler return_value delete N/A N/A handler_delete side_effect N/A N/A exception ResourceNotFound name sensor sensor_id test_id N/A obj N/A N/A controller SensorController test_id N/A N/A N/A obj delete N/A N/A N/A handler_delete assert_called_with test_id N/A N/A N/A self assertEqual 404 N/A resp_mock status N/A N/A N/A N/A mock patch pecan.request new_callable N/A fakes FakePecanRequest N/A N/A mock patch pecan.response new_callable N/A fakes FakePecanResponse N/A N/A mock patch solum.api.controllers.v1.sensor.sensor_handler.SensorHandler TestSensorsController N/A N/A base BaseTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestSensorsController self setUp N/A N/A N/A objects load N/A test_sensors_get_all N/A N/A self handler_mock resp_mock request_mock N/A N/A N/A hand_get_all N/A N/A handler_mock return_value get_all N/A fake_sensor N/A N/A fakes FakeSensor N/A N/A hand_get_all return_value N/A fake_sensor N/A obj N/A N/A controller SensorsController N/A resp N/A N/A obj get_all N/A N/A N/A self assertIsNotNone resp N/A N/A N/A self assertEqual N/A fake_sensor name N/A N/A N/A resp N/A result N/A 0 name N/A N/A N/A self assertEqual N/A fake_sensor documentation N/A N/A N/A resp N/A result N/A 0 documentation N/A N/A N/A self assertEqual N/A fake_sensor description N/A N/A N/A resp N/A result N/A 0 description N/A N/A N/A self assertEqual N/A fake_sensor project_id N/A N/A N/A resp N/A result N/A 0 project_id N/A N/A N/A self assertEqual N/A fake_sensor uuid N/A N/A N/A resp N/A result N/A 0 uuid N/A N/A N/A hand_get_all assert_called_with N/A N/A N/A self assertEqual 200 N/A resp_mock status N/A test_sensors_post N/A N/A self handler_mock resp_mock request_mock N/A N/A N/A json_update N/A value name user_id project_id description sensor_type documentation target_resource 1234 test_name_changed user_id test_id desc test str http://example.com/docs/blabla/ http://example.com/target/ N/A N/A request_mock body N/A N/A json dumps json_update N/A N/A request_mock content_type application/json N/A handler_create N/A N/A handler_mock return_value create N/A N/A handler_create return_value N/A N/A fakes FakeSensor N/A obj N/A N/A controller SensorsController N/A N/A N/A obj post N/A N/A fakes FakeSensor N/A N/A N/A self assertEqual 201 N/A resp_mock status N/A N/A N/A handler_create assert_called_once_with json_update N/A test_sensors_post_nodata N/A N/A self handler_mock resp_mock request_mock N/A N/A N/A N/A request_mock body N/A N/A request_mock content_type application/json N/A handler_create N/A N/A handler_mock return_value create N/A N/A handler_create return_value N/A N/A fakes FakeSensor N/A ret_val N/A N/A N/A N/A controller SensorsController post N/A N/A N/A self assertEqual Missing argument: "data" N/A str N/A ret_val N/A faultstring N/A N/A N/A self assertEqual 400 N/A resp_mock status N/A N/A N/A N/A mock patch pecan.request new_callable N/A fakes FakePecanRequest N/A N/A mock patch pecan.response new_callable N/A fakes FakePecanResponse N/A N/A mock patch solum.api.controllers.v1.sensor.sensor_handler.SensorHandler TestSensorAsDict N/A N/A base BaseTestCase N/A N/A scenarios N/A N/A one N/A dict data N/A name value foo 0 N/A full N/A dict data N/A value name user_id project_id description sensor_type documentation target_resource 1234 test_name_changed user_id test_id desc test str http://example.com/docs/blabla/ http://example.com/target/ test_as_dict N/A N/A self N/A N/A N/A N/A N/A objects load N/A s N/A N/A model Sensor N/A self data N/A N/A N/A N/A self data pop uri None N/A N/A N/A N/A self data pop type None N/A N/A N/A self assertEqual N/A self data N/A N/A s as_dict N/A N/A objects registry Sensor N/A N/A