Module Expr Str Assign NameStore Str Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad If CompareNotEq NameLoad Str body Raise Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If CompareEq NameLoad AttributeLoad NameLoad attr body Return Str orelse If Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str If CompareEq NameLoad Str body Return AttributeLoad NameLoad attr Raise AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr With Call NameLoad BinOpAdd AttributeLoad NameLoad attr Str Str NameStore body Print NameLoad Str Expr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str BinOpAdd AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str BinOpAdd AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str BinOpAdd AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str BinOpAdd AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str BinOpAdd AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad BinOpMod Str NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num attr Str If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr Str If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore ListComp Call AttributeLoad NameLoad attr Str Str NameLoad comprehension NameStore NameLoad Assign NameStore ListComp Call AttributeLoad NameLoad attr Str Str NameLoad comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list
N/A N/A Base class for image_bundle unittests. N/A __pychecker__ no-local N/A os N/A re N/A shutil N/A subprocess N/A tarfile N/A tempfile N/A unittest N/A urllib2 gcimagebundlelib manifest gcimagebundlelib.os_platform Platform gcimagebundlelib utils InvalidOverwriteFileException N/A Exception N/A N/A Invalid overwrite target was passed to MockPlatform.Overwrite method. N/A MockPlatform N/A Platform N/A N/A Mock platform for image bundle unit tests. N/A OVERWRITE_LIST N/A test1 __init__ N/A N/A self tmp_root N/A N/A N/A N/A N/A N/A super MockPlatform self __init__ N/A N/A self tmp_root tmp_root N/A Overwrite N/A N/A self filename arcname tmpdir N/A N/A N/A temp N/A N/A tempfile mktemp dir tmpdir N/A N/A arcname test1 N/A N/A N/A InvalidOverwriteFileException arcname N/A fd N/A open temp w N/A N/A N/A fd write N/A N/A N/A open filename read N/A N/A N/A fd write something extra. N/A N/A N/A fd close N/A temp N/A N/A MockHttp N/A N/A utils Http N/A N/A Fake implementation of the utils.Http client. Used for metadata queries. __init__ N/A N/A self N/A N/A N/A N/A self _instance_response {"hostname":"test"} N/A Get N/A N/A self request timeout N/A None N/A N/A Accepts an Http request and returns a precanned response. N/A url N/A N/A request get_full_url N/A N/A url N/A utils METADATA_URL_PREFIX N/A N/A v1/ N/A N/A N/A N/A url startswith N/A utils METADATA_V1_URL_PREFIX N/A N/A url N/A N/A url replace N/A utils METADATA_V1_URL_PREFIX N/A N/A url instance/?recursive=true N/A N/A N/A self _instance_response N/A N/A urllib2 HTTPError N/A N/A StatvfsResult N/A N/A N/A  A struct for partial os.statvfs result, used to mock the result.  __init__ N/A N/A self f_bsize f_blocks f_bfree N/A N/A N/A N/A self f_bsize f_bsize N/A N/A self f_blocks f_blocks N/A N/A self f_bfree f_bfree N/A N/A ImageBundleTest N/A N/A unittest TestCase N/A N/A ImageBundle Unit Test Base Class. setUp N/A N/A self N/A N/A N/A N/A self tmp_root N/A N/A tempfile mkdtemp dir /tmp N/A N/A self tmp_path N/A N/A tempfile mkdtemp dir N/A self tmp_root N/A N/A self _http N/A MockHttp N/A N/A self _manifest N/A N/A manifest ImageManifest http N/A self _http is_gce_instance True N/A N/A N/A self _SetupFilesystemToTar N/A tearDown N/A N/A self N/A N/A N/A N/A N/A self _CleanupFiles N/A _SetupFilesystemToTar N/A N/A self N/A N/A N/A Creates some directory structure to tar. N/A N/A N/A N/A os path exists N/A self tmp_path N/A N/A N/A N/A shutil rmtree N/A self tmp_path N/A N/A N/A os makedirs N/A self tmp_path N/A N/A open N/A N/A self tmp_path /test1 w fd N/A N/A fd some text N/A N/A N/A shutil copyfile N/A N/A self tmp_path /test1 N/A N/A self tmp_path /test2 N/A N/A N/A os makedirs N/A N/A self tmp_path /dir1 N/A N/A N/A os makedirs N/A N/A self tmp_path /dir1/dir11 N/A N/A N/A os makedirs N/A N/A self tmp_path /dir2 N/A N/A N/A os makedirs N/A N/A self tmp_path /dir2/dir1 N/A N/A N/A os symlink N/A N/A self tmp_path /test1 N/A N/A self tmp_path /dir1/sl1 N/A N/A N/A os link N/A N/A self tmp_path /test2 N/A N/A self tmp_path /dir1/hl2 N/A N/A N/A os symlink N/A N/A self tmp_path /test2 N/A N/A self tmp_path /dir2/sl2 N/A N/A N/A os link N/A N/A self tmp_path /test1 N/A N/A self tmp_path /dir2/hl1 N/A _CleanupFiles N/A N/A self N/A N/A N/A Removes the files under test directory. N/A N/A N/A N/A os path exists N/A self tmp_root N/A N/A N/A N/A shutil rmtree N/A self tmp_root N/A _VerifyTarHas N/A N/A self tar expected N/A N/A N/A p N/A N/A subprocess Popen N/A N/A tar -tf %s tar stdout N/A subprocess PIPE shell True N/A found N/A N/A N/A N/A N/A p communicate N/A 0 split N/A N/A ./ found N/A N/A N/A N/A found remove ./ N/A N/A found N/A N/A N/A N/A found remove N/A N/A N/A self _AssertListEqual expected found N/A _VerifyFileInTarEndsWith N/A N/A self tar filename text N/A N/A N/A tf N/A N/A tarfile open tar r:gz N/A fd N/A N/A tf extractfile filename N/A file_content N/A N/A fd read N/A N/A N/A self assertTrue N/A N/A file_content endswith text N/A _AssertListEqual N/A N/A self list1 list2 N/A N/A N/A Asserts that, when sorted, list1 and list2 are identical. N/A sorted_list1 N/A N/A N/A re sub /$ x N/A x list1 N/A sorted_list2 N/A N/A N/A re sub /$ x N/A x list2 N/A N/A N/A sorted_list1 sort N/A N/A N/A sorted_list2 sort N/A N/A N/A self assertEqual sorted_list1 sorted_list2 N/A N/A