def flags(self, **kw):
        """Override flag variables for a test."""
        for k, v in kw.iteritems():
            # Store original flag value if it's not been overriden yet
            if k not in self.flag_overrides:
                self.flag_overrides[k] = getattr(FLAGS, k)
            setattr(FLAGS, k, v)
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/test.py/TestCase.flags/original