#NEWLINE# @ mock . patch ( 'changes.lib.snapshot_garbage_collection.get_plans_for_cluster' ) #NEWLINE# def test_cached_snapshot_images_no_plans( self , get_plans ) : #NEWLINE# #INDENT# project = self . create_project ( ) #NEWLINE# plan = self . create_plan ( project ) #NEWLINE# snapshot = self . create_snapshot ( project ) #NEWLINE# snapshot_image = self . create_snapshot_image ( project , plan ) #NEWLINE# cached_snapshot_image = self . create_cached_snapshot_image ( snapshot_image ) #NEWLINE# get_plans . return_value = set ( ) #NEWLINE# assert ( gc . get_cached_snapshot_images ( 'cluster' ) == [ ] )