Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias ImportFrom alias identifier Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Dict Str Str Str Str NameLoad NameLoad Assign NameStore ListLoad Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str NameLoad Str Str Str Str NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Num Num Num Str Dict Str Str Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str NameLoad Str Str Str Str NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Num Num Num Str Dict ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad SubscriptLoad NameLoad Index Num Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad SubscriptLoad NameLoad Index Num Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad SubscriptLoad NameLoad Index Num Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num decorator_list decorator_list
N/A N/A datetime glance.common context glance.common exception glance.common utils glance.registry context rcontext glance.registry.db api db_api glance.registry.db models db_models glance.tests.unit base glance.tests utils test_utils N/A _gen_uuid N/A utils generate_uuid N/A UUID1 N/A _gen_uuid N/A UUID2 N/A _gen_uuid N/A CONF N/A sql_connection verbose debug sqlite:// False False N/A FIXTURES N/A N/A id name status disk_format container_format is_public created_at updated_at deleted_at deleted checksum min_disk min_ram size location properties UUID1 fake image #1 active ami ami False N/A N/A N/A datetime datetime utcnow N/A N/A N/A datetime datetime utcnow None False None 0 0 13 swift://user:passwd@acct/container/obj.tar.0 N/A type kernel N/A id name status disk_format container_format is_public created_at updated_at deleted_at deleted checksum min_disk min_ram size location properties UUID2 fake image #2 active vhd ovf True N/A N/A N/A datetime datetime utcnow N/A N/A N/A datetime datetime utcnow None False None 5 256 19 file:///tmp/glance-tests/2 N/A TestRegistryDb N/A N/A base IsolatedUnitTest N/A setUp N/A N/A self N/A N/A N/A Establish a clean test environment N/A N/A N/A N/A super TestRegistryDb self setUp N/A conf N/A N/A test_utils TestConfigOpts CONF N/A N/A self adm_context N/A N/A rcontext RequestContext is_admin True N/A N/A self context N/A N/A rcontext RequestContext is_admin False N/A N/A N/A db_api configure_db conf N/A N/A N/A self destroy_fixtures N/A N/A N/A self create_fixtures N/A create_fixtures N/A N/A self N/A N/A N/A fixture FIXTURES N/A N/A N/A N/A db_api image_create N/A self adm_context fixture N/A destroy_fixtures N/A N/A self N/A N/A N/A N/A N/A db_models unregister_models N/A db_api _ENGINE N/A N/A N/A db_models register_models N/A db_api _ENGINE N/A test_image_get N/A N/A self N/A N/A N/A image N/A N/A db_api image_get N/A self context UUID1 N/A N/A N/A self assertEquals N/A image N/A id N/A N/A FIXTURES N/A 0 N/A id N/A test_image_get_disallow_deleted N/A N/A self N/A N/A N/A N/A N/A db_api image_destroy N/A self adm_context UUID1 N/A N/A N/A self assertRaises N/A exception NotFound N/A db_api image_get N/A self context UUID1 N/A test_image_get_allow_deleted N/A N/A self N/A N/A N/A N/A N/A db_api image_destroy N/A self adm_context UUID1 N/A image N/A N/A db_api image_get N/A self adm_context UUID1 N/A N/A N/A self assertEquals N/A image N/A id N/A N/A FIXTURES N/A 0 N/A id N/A test_image_get_force_allow_deleted N/A N/A self N/A N/A N/A N/A N/A db_api image_destroy N/A self adm_context UUID1 N/A image N/A N/A db_api image_get N/A self context UUID1 force_show_deleted True N/A N/A N/A self assertEquals N/A image N/A id N/A N/A FIXTURES N/A 0 N/A id N/A test_image_get_all N/A N/A self N/A N/A N/A images N/A N/A db_api image_get_all N/A self context N/A N/A N/A self assertEquals N/A len images 2 N/A test_image_get_all_marker N/A N/A self N/A N/A N/A images N/A N/A db_api image_get_all N/A self context marker UUID2 N/A N/A N/A self assertEquals N/A len images 1 N/A test_image_get_all_marker_deleted N/A N/A self N/A N/A N/A Cannot specify a deleted image as a marker. N/A N/A N/A db_api image_destroy N/A self adm_context UUID1 N/A filters N/A deleted False N/A N/A N/A self assertRaises N/A exception NotFound N/A db_api image_get_all N/A self context marker UUID1 filters filters N/A test_image_get_all_marker_deleted_showing_deleted_as_admin N/A N/A self N/A N/A N/A Specify a deleted image as a marker if showing deleted images. N/A N/A N/A db_api image_destroy N/A self adm_context UUID1 N/A images N/A N/A db_api image_get_all N/A self adm_context marker UUID1 N/A N/A N/A self assertEquals N/A len images 0 N/A test_image_get_all_marker_deleted_showing_deleted N/A N/A self N/A N/A N/A Specify a deleted image as a marker if showing deleted images. N/A N/A N/A db_api image_destroy N/A self adm_context UUID1 N/A filters N/A deleted True N/A images N/A N/A db_api image_get_all N/A self context marker UUID1 filters filters N/A N/A N/A self assertEquals N/A len images 0 N/A N/A