def METHOD_NAME(self):
    tasks = self._CONFIGS.get("tasks")
    flags, json_profile_out, capture_corrupted_outputs_dir = bazelci.calculate_flags(
        tasks.get("capture_corrupted"), "build_flags", "build", "/tmp", ["HOME"]
    )
    self.assertEqual(
        flags,
        [
            "--enable_x",
            "--enable_y",
            "--experimental_remote_capture_corrupted_outputs=/tmp/build_corrupted_outputs",
            "--test_env=HOME",
        ],
    )
    self.assertEqual(capture_corrupted_outputs_dir, "/tmp/build_corrupted_outputs")