def METHOD_NAME(self) -> None:
    with self.assertRaisesRegex(
        Exception,
        (
            "manifest file test section 'manifest' contains "
            "unknown field 'invalid.field'"
        ),
    ):
        ManifestParser(
            "test",
            """