def METHOD_NAME(self, db):
    with pytest.raises(
        KeyError,
        match="Received unrecognised subtype foo for " "technology nanofiltration.",
    ):
        db.get_unit_operation_parameters(
            "nanofiltration", subtype=["subtype1", "foo"]
        )