def METHOD_NAME(self):
    """check swig version"""
    version = str(self.version)
    if version.endswith("-fortran"):
        version = version.replace("-", r"+")
    elif version in ("fortran", "master"):
        version = ""
    out = self._swig("-version", output=str.split, error=str.split)
    expected = f"SWIG Version {version}"
    assert expected in out, f"Expected '{expected}' in output"