@mock.patch('changes.lib.snapshot_garbage_collection.get_plans_for_cluster')
    def test_cached_snapshot_images_gets_plans(self, get_plans):
        project = self.create_project()
        plan = self.create_plan(project)
        snapshot = self.create_snapshot(project)

        snapshot_image = self.create_snapshot_image(snapshot, plan)
        cached_snapshot_image = self.create_cached_snapshot_image(snapshot_image)

        get_plans.return_value = set()
        gc.get_cached_snapshot_images('cluster')
        get_plans.assert_called_with('cluster')
More or less a metatest that verifies that the mocking
dataset/ETHPy150Open dropbox/changes/tests/changes/lib/test_snapshot_garbage_collection.py/TestSnapshotGCTestCase.test_cached_snapshot_images_gets_plans