def METHOD_NAME(self):
    # Only validating error cases for now.
    validation_cases: Sequence[
        Tuple[str, ChocolateyInstallGenerator, Optional[Exception]]
    ] = (
        (
            "empty packageName",
            ChocolateyInstallGenerator("", "msi"),
            ChocolateyValidationError,
        ),
        (
            "invalid fileType",
            ChocolateyInstallGenerator("foopkg", "pkg"),
            ChocolateyValidationError,
        ),
        (
            "missing content",
            ChocolateyInstallGenerator("foopkg", "exe"),
            ChocolateyValidationError,
        ),
        (
            "missing url checksum",
            ChocolateyInstallGenerator(
                packageName="foopkg",
                fileType="exe",
                url="example.com/nochecksum.exe",
            ),
            ChocolateyValidationError,
        ),
        (
            "missing url64bit checksum",
            ChocolateyInstallGenerator(
                packageName="foopkg",
                fileType="exe",
                url64bit="example.com/nochecksum64.exe",
            ),
            ChocolateyValidationError,
        ),
        (
            "invalid checksum type: url",
            ChocolateyInstallGenerator(
                packageName="foopkg",
                fileType="exe",
                url="example.com/nochecksum.exe",
                checksum="notarealchecksumitsokay",
                checksumType="unreal2048",
            ),
            ChocolateyValidationError,
        ),
        (
            "invalid checksum type: url",
            ChocolateyInstallGenerator(
                packageName="foopkg",
                fileType="exe",
                url="example.com/nochecksum.exe",
                checksum="notarealchecksumitsokay",
                checksumType="sha1",
            ),
            None,
        ),
        (
            "invalid checksum type: url64bit",
            ChocolateyInstallGenerator(
                packageName="foopkg",
                fileType="exe",
                url="example.com/nochecksum64.exe",
                checksum="notarealchecksumitsokay64",
                checksumType="unreal2049",
            ),
            ChocolateyValidationError,
        ),
    )
    for casename, object, expectedres in validation_cases:
        with self.subTest(casename):
            if expectedres is not None:
                self.assertRaises(expectedres, object._validate)
            else:
                object._validate()