def test_audit_logging_middleware_disable():
  c = make_logged_in_client(username='test_audit_logging', is_superuser=False)

  reset = AUDIT_EVENT_LOG_DIR.set_for_testing('')
  try:
    # No middleware yet
    response = c.get("/oozie/")
    assert_false(response in 'audited', response)
  finally:
    reset()
dataset/ETHPy150Open cloudera/hue/desktop/core/src/desktop/middleware_test.py/test_audit_logging_middleware_disable/swapped operands of `in`