def METHOD_NAME(self, _on_ac_power, _on_metered_connection, logger):
    cmd = makecache.MakeCacheCommand(self.cli)
    self.base.conf.metadata_timer_sync = 5
    self.assertFalse(self._do_makecache(cmd))
    msg = u'Metadata timer caching disabled when running on a battery.'
    self.assert_last_info(logger, msg)