Module Import alias Import alias Import alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign NameStore Str Assign NameStore Str Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Str Assign NameStore Str Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Str Assign NameStore Str Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str keyword Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword NameLoad decorator_list
N/A N/A os N/A dogpile.cache N/A mock ironicclient.common filecache ironicclient.tests.unit utils FileCacheTest N/A N/A utils BaseTestCase N/A test__build_key_ok N/A N/A self N/A N/A N/A result N/A N/A filecache _build_key localhost 5000 N/A N/A N/A self assertEqual localhost:5000 result N/A test__build_key_none N/A N/A self N/A N/A N/A result N/A N/A filecache _build_key None None N/A N/A N/A self assertEqual None:None result N/A test__get_cache_mkdir N/A N/A self mock_makeregion mock_makedirs mock_exists N/A N/A N/A cache_val 6 N/A N/A filecache CACHE None N/A N/A mock_exists return_value False N/A cache_region N/A N/A mock Mock spec N/A N/A N/A dogpile cache region CacheRegion N/A N/A N/A cache_region configure return_value cache_val N/A N/A mock_makeregion return_value cache_region N/A N/A N/A self assertEqual cache_val N/A N/A filecache _get_cache N/A N/A N/A mock_exists assert_called_once_with N/A filecache CACHE_DIR N/A N/A N/A mock_makedirs assert_called_once_with N/A filecache CACHE_DIR N/A N/A N/A N/A mock patch object N/A os path exists autospec True N/A N/A N/A mock patch object os makedirs autospec True N/A N/A N/A mock patch object N/A dogpile cache make_region autospec True test__get_cache_dir_already_exists N/A N/A self mock_makedirs mock_exists N/A N/A N/A cache_val 5552368 N/A N/A mock_exists return_value True N/A N/A filecache CACHE cache_val N/A N/A N/A self assertEqual cache_val N/A N/A filecache _get_cache N/A N/A N/A self assertEqual 0 N/A mock_exists call_count N/A N/A N/A self assertEqual 0 N/A mock_makedirs call_count N/A N/A N/A N/A mock patch object N/A os path exists autospec True N/A N/A N/A mock patch object os makedirs autospec True test_save_data_ok N/A N/A self mock_get_cache mock_cache N/A N/A N/A N/A mock_get_cache return_value mock_cache N/A host fred N/A port 1234 N/A hostport N/A %s:%s N/A host port N/A data some random data N/A N/A N/A filecache save_data host port data N/A N/A N/A N/A mock_cache set assert_called_once_with hostport data N/A N/A N/A N/A mock patch object N/A N/A dogpile cache region CacheRegion autospec True N/A N/A N/A mock patch object filecache _get_cache autospec True test_retrieve_data_ok N/A N/A self mock_get_cache mock_cache mock_isfile N/A N/A N/A s spam N/A N/A mock_isfile return_value True N/A N/A N/A mock_cache get return_value s N/A N/A mock_get_cache return_value mock_cache N/A host fred N/A port 1234 N/A hostport N/A %s:%s N/A host port N/A result N/A N/A filecache retrieve_data host port N/A N/A N/A N/A mock_cache get assert_called_once_with hostport expiration_time None N/A N/A N/A self assertEqual s result N/A N/A N/A N/A mock patch object N/A os path isfile autospec True N/A N/A N/A mock patch object N/A N/A dogpile cache region CacheRegion autospec True N/A N/A N/A mock patch object filecache _get_cache autospec True test_retrieve_data_ok_with_expiry N/A N/A self mock_get_cache mock_cache mock_isfile N/A N/A N/A s spam N/A N/A mock_isfile return_value True N/A N/A N/A mock_cache get return_value s N/A N/A mock_get_cache return_value mock_cache N/A host fred N/A port 1234 N/A expiry 987 N/A hostport N/A %s:%s N/A host port N/A result N/A N/A filecache retrieve_data host port expiry N/A N/A N/A N/A mock_cache get assert_called_once_with hostport expiration_time expiry N/A N/A N/A self assertEqual s result N/A N/A N/A N/A mock patch object N/A os path isfile autospec True N/A N/A N/A mock patch object N/A N/A dogpile cache region CacheRegion autospec True N/A N/A N/A mock patch object filecache _get_cache autospec True test_retrieve_data_not_found N/A N/A self mock_get_cache mock_cache mock_isfile N/A N/A N/A N/A mock_isfile return_value True N/A N/A N/A mock_cache get return_value N/A N/A N/A dogpile cache api NO_VALUE N/A N/A mock_get_cache return_value mock_cache N/A host fred N/A port 1234 N/A hostport N/A %s:%s N/A host port N/A result N/A N/A filecache retrieve_data host port N/A N/A N/A N/A mock_cache get assert_called_once_with hostport expiration_time None N/A N/A N/A self assertIsNone result N/A N/A N/A N/A mock patch object N/A os path isfile autospec True N/A N/A N/A mock patch object N/A N/A dogpile cache region CacheRegion autospec True N/A N/A N/A mock patch object filecache _get_cache autospec True test_retrieve_data_no_cache_file N/A N/A self mock_isfile N/A N/A N/A N/A mock_isfile return_value False N/A N/A N/A self assertIsNone N/A N/A filecache retrieve_data host spam port eggs N/A N/A N/A N/A mock patch object N/A os path isfile autospec True N/A