def _fake_logs(self):
        if _TRUE_VALUES in os.environ.get('OS_DEBUG'):
            level = logging.DEBUG
        else:
            level = logging.INFO
        capture_logs = os.environ.get('OS_LOG_CAPTURE') in _TRUE_VALUES
        if capture_logs:
            self.useFixture(
                fixtures.FakeLogger(
                    format=_LOG_FORMAT,
                    level=level,
                    nuke_handlers=capture_logs,
                )
            )
        else:
            logging.basicConfig(format=_LOG_FORMAT, level=level)
dataset/ETHPy150Open openstack/python-blazarclient/climateclient/openstack/common/test.py/BaseTestCase._fake_logs/swapped operands of `in`