Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr Str decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr keyword Str keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str decorator_list Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr keyword Str keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad decorator_list
N/A N/A mock rally exceptions rally.plugins.common types tests.unit test PathOrUrlTestCase N/A N/A test TestCase N/A test_transform_file N/A N/A self mock_requests_head mock_isfile N/A N/A N/A N/A mock_isfile return_value True N/A path N/A N/A N/A types PathOrUrl transform None fake_path N/A N/A N/A self assertEqual fake_path path N/A N/A N/A mock patch os.path.isfile N/A N/A mock patch requests.head test_transform_bogus N/A N/A self mock_requests_head mock_isfile N/A N/A N/A N/A mock_isfile return_value False N/A N/A mock_requests_head return_value N/A N/A mock Mock status_code 500 N/A N/A N/A self assertRaises N/A exceptions InvalidScenarioArgument N/A N/A types PathOrUrl transform None fake_path N/A N/A N/A mock_requests_head assert_called_once_with fake_path N/A N/A N/A mock patch os.path.isfile N/A N/A mock patch requests.head test_transform_url N/A N/A self mock_requests_head mock_isfile N/A N/A N/A N/A mock_isfile return_value False N/A N/A mock_requests_head return_value N/A N/A mock Mock status_code 200 N/A path N/A N/A N/A types PathOrUrl transform None fake_url N/A N/A N/A self assertEqual fake_url path N/A N/A N/A mock patch os.path.isfile N/A N/A mock patch requests.head N/A FileTypeTestCase N/A N/A test TestCase N/A test_transform_by_path N/A N/A self mock_open N/A N/A N/A resource_config file.yaml N/A file_context N/A N/A N/A types FileType transform clients None resource_config resource_config N/A N/A N/A self assertEqual file_context file_context N/A N/A N/A mock patch six.moves.builtins.open side_effect N/A N/A mock mock_open read_data file_context create True test_transform_by_path_no_match N/A N/A self mock_open N/A N/A N/A resource_config nonexistant.yaml N/A N/A N/A self assertRaises IOError N/A N/A types FileType transform clients None resource_config resource_config N/A N/A N/A mock patch six.moves.builtins.open side_effect IOError create True N/A FileTypeDictTestCase N/A N/A test TestCase N/A test_transform_by_path N/A N/A self mock_open N/A N/A N/A resource_config N/A file.yaml N/A file_context N/A N/A N/A types FileTypeDict transform clients None resource_config resource_config N/A N/A N/A self assertEqual file_context N/A file.yaml file_context N/A N/A N/A mock patch six.moves.builtins.open side_effect N/A N/A mock mock_open read_data file_context create True test_transform_by_path_no_match N/A N/A self mock_open N/A N/A N/A resource_config N/A nonexistant.yaml N/A N/A N/A self assertRaises IOError N/A N/A types FileTypeDict transform clients None resource_config resource_config N/A N/A N/A mock patch six.moves.builtins.open side_effect IOError create True N/A