class_docstr: Test class for the Folium library.
class_docstr_tok: ["Test","class","for","the","Folium","library","."]
code: def test_fit_bounds_2(self):
      bounds = ((52.193636, -2.221575), (52.636878, -1.139759))
      self.m.fit_bounds(bounds, max_zoom=15, padding=(3, 3))
      fitbounds = [
          val
          for key, val in self.m._children.items()
          if isinstance(val, folium.FitBounds)
      ][0]
      out = self.m._parent.render()
  
      fit_bounds_tpl = self.env.get_template("fit_bounds.js")
      fit_bounds_rendered = fit_bounds_tpl.render(
          {
              "bounds": json.dumps(bounds),
              "fit_bounds_options": json.dumps(
                  {
                      "maxZoom": 15,
                      "padding": (3, 3),
                  },
                  sort_keys=True,
              ),
              "this": fitbounds,
          }
      )
  
      assert "".join(fit_bounds_rendered.split()) in "".join(
          out.split()
      )
  
      bounds = self.m.get_bounds()
      assert bounds == [[None, None], [None, None]], bounds
  
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 15 for calling the TestFolium obj's underlying member method code with example usage: obj.test_fit_bounds_2() without return types