class_docstr: Test class for the Folium library.
class_docstr_tok: ["Test","class","for","the","Folium","library","."]
docstr: Test custom maptiles.
docstr_tok: ["Test","custom","maptiles","."]
code: def test_builtin_tile(self, tiles, provider):
      """Test custom maptiles."""
  
      m = folium.Map(location=[45.5236, -122.6750], tiles=tiles)
      tiles = "".join(tiles.lower().strip().split())
      url = provider.build_url(fill_subdomain=False, scale_factor="{r}")
      attr = provider.html_attribution
  
      assert m._children[tiles.replace("_", "")].tiles == url
      assert htmlsafe_json_dumps(attr) in m._parent.render()
  
      bounds = 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 3 for calling the TestFolium obj's underlying member method code with example usage: obj.test_builtin_tile(tiles, provider) without return types