def METHOD_NAME(self) -> None:
    self.expected_check_function_calls['remove_is_called'] = False
    self.raise_error = True
    def mock_exists(path: str) -> bool:
        if path == common.GOOGLE_CLOUD_SDK_HOME:
            return False
        return True
    exists_swap = self.swap(os.path, 'exists', mock_exists)
    with self.walk_swap, self.remove_swap, self.makedirs_swap:
        with self.print_swap, self.url_retrieve_swap, exists_swap:
            with self.assertRaisesRegex(
                Exception, 'Error downloading Google Cloud SDK.'):
                setup_gae.main(args=[])
    self.assertEqual(
        self.check_function_calls, self.expected_check_function_calls)
    self.assertTrue(
        'Error downloading Google Cloud SDK. Exiting.'
        in self.print_arr)