class_docstr: Test class for the Folium library.
class_docstr_tok: ["Test","class","for","the","Folium","library","."]
code: def test_global_switches(self):
      m = folium.Map(prefer_canvas=True)
      out = m._parent.render()
      out_str = "".join(out.split())
      assert "preferCanvas:true" in out_str
      assert not m.global_switches.no_touch
      assert not m.global_switches.disable_3d
  
      m = folium.Map(no_touch=True)
      out = m._parent.render()
      out_str = "".join(out.split())
      assert "preferCanvas:false" in out_str
      assert m.global_switches.no_touch
      assert not m.global_switches.disable_3d
  
      m = folium.Map(disable_3d=True)
      out = m._parent.render()
      out_str = "".join(out.split())
      assert "preferCanvas:false" in out_str
      assert not m.global_switches.no_touch
      assert m.global_switches.disable_3d
  
      m = folium.Map(prefer_canvas=True, no_touch=True, disable_3d=True)
      out = m._parent.render()
      out_str = "".join(out.split())
      assert "preferCanvas:true" in out_str
      assert m.global_switches.no_touch
      assert m.global_switches.disable_3d
  
imports: import json
  import os
  import branca.element
  import geopandas
  import jinja2
  import numpy
  import pandas
  import pytest
  import xyzservices.providers
  from jinja2 import Environment, PackageLoader
  from jinja2.utils import htmlsafe_json_dumps
  import folium
  from folium import TileLayer
  from folium.features import Choropleth, GeoJson
label_desc: Use image node_id 17 for calling the TestFolium obj's underlying member method code with example usage: obj.test_global_switches() without return types