Module Expr Str Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore BinOpMod BinOpMod Str NameLoad TupleLoad Num Num Assign NameStore Dict Str Str Num Num Assign NameStore BinOpMod BinOpMod Str NameLoad TupleLoad Num Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Str Assign NameStore Dict Str Str Num Num Assign NameStore BinOpMod BinOpMod Str NameLoad TupleLoad Num Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Str Assign NameStore Dict Str Str Num Num Assign NameStore BinOpMod NameLoad TupleLoad Num Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore ListLoad NameLoad Assign NameStore Dict NameLoad Dict Str Str Str Str Str Num NameLoad Num Num Call NameLoad BinOpDiv Num Num Assign NameStore BinOpMod AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr TupleLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Assign NameStore Str Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr TupleLoad NameLoad NameLoad Expr Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr NameLoad Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Num attr NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr NameLoad Assign NameStore Num For NameStore AttributeLoad AttributeLoad NameLoad attr attr body AugAssignAdd NameStore Num Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Num body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str NameLoad attr NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad If NameLoad body Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Num Assign NameStore ListLoad NameLoad NameLoad Expr Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr NameLoad Expr Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Call AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore ListLoad NameLoad NameLoad Expr Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword Str Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Call AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list Expr Call AttributeLoad NameLoad attr keyword Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A maint module tests. N/A logging N/A mox N/A stubout google.apputils app tests.simian.mac.common test simian.mac.cron maintenance maint AuthSessionCleanupTest N/A N/A test RequestHandlerTest N/A GetTestClassInstance N/A N/A self N/A N/A N/A N/A N/A maint AuthSessionCleanup N/A GetTestClassModule N/A N/A self N/A N/A N/A maint N/A testGet N/A N/A self N/A N/A N/A Test get(). N/A N/A N/A N/A self mox StubOutWithMock N/A maint gaeserver AuthSessionSimianServer N/A mock_ps N/A N/A N/A self mox CreateMockAnything N/A N/A N/A N/A N/A N/A maint gaeserver AuthSessionSimianServer AndReturn mock_ps N/A N/A N/A N/A N/A mock_ps ExpireAll AndReturn 2 N/A N/A N/A N/A self mox ReplayAll N/A N/A N/A N/A self c get N/A N/A N/A N/A self mox VerifyAll N/A N/A UpdateAverageInstallDurationsTest N/A N/A test RequestHandlerTest N/A GetTestClassInstance N/A N/A self N/A N/A N/A N/A N/A maint UpdateAverageInstallDurations N/A GetTestClassModule N/A N/A self N/A N/A N/A maint N/A _testGetUpdatedDescriptionExistingDescWithAvgDuration N/A N/A self N/A N/A N/A Test _GetUpdatedDescription() with desc and avg duration text. N/A avg_duration_text N/A N/A N/A maint models PackageInfo AVG_DURATION_TEXT N/A old_desc N/A N/A Foo Bar

%s avg_duration_text N/A 5490 120 N/A duration_dict N/A duration_count duration_seconds_avg 6523 117 N/A expected_desc N/A N/A Foo Bar

%s avg_duration_text N/A 6523 117 N/A new_desc N/A N/A N/A self c _GetUpdatedDescription duration_dict old_desc N/A N/A N/A self assertEqual new_desc expected_desc N/A _testGetUpdatedDescriptionExistingDescWithoutAvgDuration N/A N/A self N/A N/A N/A Test _GetUpdatedDescription() with desc lacking avg durations text. N/A avg_duration_text N/A N/A N/A maint models PackageInfo AVG_DURATION_TEXT N/A old_desc Foo Bar N/A duration_dict N/A duration_count duration_seconds_avg 6523 117 N/A expected_desc N/A N/A Foo Bar

%s avg_duration_text N/A 6523 117 N/A new_desc N/A N/A N/A self c _GetUpdatedDescription duration_dict old_desc N/A N/A N/A self assertEqual new_desc expected_desc N/A _testGetUpdatedDescriptionEmpty N/A N/A self N/A N/A N/A Test _GetUpdatedDescription() with an empty desc. N/A avg_duration_text N/A N/A N/A maint models PackageInfo AVG_DURATION_TEXT N/A old_desc N/A duration_dict N/A duration_count duration_seconds_avg 6523 117 N/A expected_desc N/A avg_duration_text N/A 6523 117 N/A new_desc N/A N/A N/A self c _GetUpdatedDescription duration_dict old_desc N/A N/A N/A self assertEqual new_desc expected_desc N/A testGet N/A N/A self N/A N/A N/A Test get(). N/A pkginfo1 N/A N/A N/A self mox CreateMockAnything N/A N/A pkginfo1 name name1 N/A N/A pkginfo1 filename filename1 N/A N/A pkginfo1 plist plist1 N/A N/A pkginfo1 version 1.2.3 N/A pkg1_munki_name N/A %s-%s N/A N/A pkginfo1 name N/A pkginfo1 version N/A N/A pkginfo1 munki_name pkg1_munki_name N/A pkg1_lock N/A pkgsinfo_%s N/A pkginfo1 filename N/A mock_pl1 N/A N/A N/A self mox CreateMockAnything N/A N/A pkginfo1 plist mock_pl1 N/A pkginfos N/A pkginfo1 N/A install_counts N/A pkg1_munki_name N/A install_count applesus duration_count duration_total_seconds duration_seconds_avg 3 True 2 50 N/A int N/A 50 2 N/A pkg1_avg_duration_text N/A N/A N/A N/A maint models PackageInfo AVG_DURATION_TEXT N/A N/A N/A install_counts N/A pkg1_munki_name N/A duration_count N/A N/A install_counts N/A pkg1_munki_name N/A duration_seconds_avg N/A pkg1_desc This pkg is cool! N/A pkg1_desc_updated N/A %s

%s N/A pkg1_desc pkg1_avg_duration_text N/A N/A pkginfo1 description pkg1_desc N/A N/A N/A N/A self mox StubOutWithMock N/A N/A maint models ReportsCache GetInstallCounts N/A N/A N/A N/A self mox StubOutWithMock N/A N/A maint models PackageInfo all N/A N/A N/A N/A self mox StubOutWithMock N/A maint gae_util ObtainLock N/A N/A N/A N/A self mox StubOutWithMock N/A maint gae_util ReleaseLock N/A N/A N/A N/A self mox StubOutWithMock N/A N/A maint models Catalog all N/A N/A N/A N/A self mox StubOutWithMock N/A N/A maint models Catalog Generate N/A N/A N/A N/A N/A N/A N/A maint models ReportsCache GetInstallCounts AndReturn N/A install_counts None N/A N/A N/A N/A N/A N/A N/A maint models PackageInfo all AndReturn pkginfos N/A N/A N/A N/A N/A N/A maint gae_util ObtainLock pkg1_lock timeout 5.0 AndReturn True N/A N/A N/A N/A N/A mock_pl1 __getitem__ description AndReturn pkg1_desc N/A N/A N/A N/A N/A mock_pl1 __getitem__ description AndReturn pkg1_desc_updated N/A N/A N/A N/A N/A pkginfo1 put AndReturn None N/A N/A N/A N/A N/A N/A maint gae_util ReleaseLock pkg1_lock AndReturn None N/A delay 0 N/A track N/A N/A maint common TRACKS N/A N/A delay 5 N/A N/A N/A N/A N/A maint models Catalog Generate track delay delay N/A N/A N/A N/A self mox ReplayAll N/A N/A N/A N/A self c get N/A N/A N/A self assertEqual N/A pkginfo1 description pkg1_desc_updated N/A N/A N/A N/A self mox VerifyAll N/A N/A VerifyPackagesCleanupTest N/A N/A test RequestHandlerTest N/A GetTestClassInstance N/A N/A self N/A N/A N/A N/A N/A maint VerifyPackages N/A GetTestClassModule N/A N/A self N/A N/A N/A maint N/A MockPackageInfoQuery N/A N/A self blobstore_key return_value sleep N/A None 0 N/A N/A Mocks a PackageInfo query filtering with a given mock blob and key. N/A mock_query N/A N/A N/A self mox CreateMockAnything N/A N/A N/A N/A N/A N/A N/A maint models PackageInfo all AndReturn mock_query N/A N/A N/A N/A N/A mock_query filter blobstore_key = blobstore_key AndReturn mock_query N/A N/A N/A N/A N/A mock_query get AndReturn return_value N/A sleep N/A N/A N/A N/A N/A N/A N/A maint time sleep sleep AndReturn None N/A testGet N/A N/A self N/A N/A N/A Test get(). N/A N/A N/A N/A self mox StubOutWithMock N/A maint models PackageInfo N/A N/A N/A N/A self mox StubOutWithMock N/A maint blobstore BlobInfo N/A N/A N/A N/A self mox StubOutWithMock N/A maint time sleep N/A N/A N/A N/A self mox StubOutWithMock N/A maint mail SendMail N/A blobstore_key_good goodkey N/A blobstore_key_bad badkey N/A filename_bad badfilename N/A mock_pkginfo_good N/A N/A N/A self mox CreateMockAnything N/A mock_pkginfo_bad N/A N/A N/A self mox CreateMockAnything N/A N/A mock_pkginfo_good blobstore_key blobstore_key_good N/A N/A mock_pkginfo_bad blobstore_key blobstore_key_bad N/A N/A mock_pkginfo_bad filename filename_bad N/A N/A mock_pkginfo_bad mtime N/A N/A N/A maint datetime datetime 1970 1 1 N/A pkginfos N/A mock_pkginfo_good mock_pkginfo_bad N/A N/A N/A N/A N/A N/A N/A maint models PackageInfo all AndReturn pkginfos N/A N/A N/A N/A N/A N/A N/A maint blobstore BlobInfo get N/A mock_pkginfo_good blobstore_key AndReturn True N/A N/A N/A N/A N/A N/A N/A maint blobstore BlobInfo get N/A mock_pkginfo_bad blobstore_key AndReturn None N/A N/A N/A N/A N/A N/A maint mail SendMail N/A N/A mox IgnoreArg N/A Package is lacking a file: %s filename_bad N/A N/A mox IgnoreArg AndReturn None N/A blob_good N/A N/A N/A self mox CreateMockAnything N/A blob_bad N/A N/A N/A self mox CreateMockAnything N/A N/A blob_bad filename filename_bad N/A blobs N/A blob_good blob_bad N/A N/A N/A N/A N/A N/A N/A maint blobstore BlobInfo all AndReturn blobs N/A N/A N/A N/A N/A blob_good key AndReturn blobstore_key_good N/A N/A N/A self MockPackageInfoQuery blobstore_key_good return_value non None N/A N/A N/A N/A N/A blob_bad key AndReturn blobstore_key_bad N/A N/A N/A self MockPackageInfoQuery blobstore_key_bad sleep 1 N/A N/A N/A self MockPackageInfoQuery blobstore_key_bad sleep 1 N/A N/A N/A self MockPackageInfoQuery blobstore_key_bad sleep 1 N/A N/A N/A self MockPackageInfoQuery blobstore_key_bad sleep 1 N/A N/A N/A self MockPackageInfoQuery blobstore_key_bad N/A N/A N/A N/A N/A N/A maint mail SendMail N/A N/A mox IgnoreArg N/A Orphaned Blob in Blobstore: %s filename_bad N/A N/A mox IgnoreArg AndReturn None N/A N/A N/A N/A self mox ReplayAll N/A N/A N/A N/A self c get N/A N/A N/A N/A self mox VerifyAll N/A N/A N/A N/A N/A logging basicConfig filename /dev/null main N/A N/A unused_argv N/A N/A N/A N/A N/A test main unused_argv N/A N/A N/A __name__ __main__ N/A N/A N/A N/A app run