def METHOD_NAME(self):
    with self.assertRaisesRegex(pybamm.GeometryError, "Invalid current"):
        pybamm.battery_geometry(
            form_factor="cylindrical", options={"dimensionality": 2}
        )
    with self.assertRaisesRegex(pybamm.GeometryError, "Invalid form"):
        pybamm.battery_geometry(form_factor="triangle")