code: def _test_enabling_disabling():
      # Enabling/disabling
      gl.glEnable(gl.GL_DEPTH_TEST)
      assert_equal(gl.glIsEnabled(gl.GL_DEPTH_TEST), True)
      assert_equal(gl.glGetParameter(gl.GL_DEPTH_TEST), 1)
      gl.glDisable(gl.GL_DEPTH_TEST)
      assert_equal(gl.glIsEnabled(gl.GL_DEPTH_TEST), False)
      assert_equal(gl.glGetParameter(gl.GL_DEPTH_TEST), 0)
      #
      gl.glEnable(gl.GL_BLEND)
      assert_equal(gl.glIsEnabled(gl.GL_BLEND), True)
      assert_equal(gl.glGetParameter(gl.GL_BLEND), 1)
      gl.glDisable(gl.GL_BLEND)
      assert_equal(gl.glIsEnabled(gl.GL_BLEND), False)
      assert_equal(gl.glGetParameter(gl.GL_BLEND), 0)
  
      gl.check_error()
  
file_path: vispy/vispy/gloo/gl/tests/test_basics.py
imports: import sys
  from vispy.app import Canvas
  from numpy.testing import assert_almost_equal
  from vispy.testing import requires_application, requires_pyopengl, SkipTest, run_tests_if_main, assert_equal, assert_true
  from vispy.util import use_log_level
  from vispy.gloo import gl
label_desc: Use image node_id 8 for calling a global function with example usage: _test_enabling_disabling() without return types