def METHOD_NAME(self):
    self.builder()
    self.client.indices.put_settings.side_effect = testvars.fake_fail
    iso = IndexSettings(self.ilo, {'index':{'refresh_interval':'1s'}})
    self.assertRaises(Exception, iso.do_action)