def METHOD_NAME(self):
    m2ee = M2EEMock()
    m2ee.config._conf["SomeSection"] = {"SomeKey": "value1"}
    with self.assertRaises(ValueError):
        util._upsert_m2ee_config_setting(
            m2ee, "SomeSection", "SomeKey", 2, append=True
        )