def test_set_map_builtin_style(): map = Map(api_key=API_KEY) stylename = 'aubergine' map.set_style(stylename) this_dir, _ = os.path.split(__file__) root_dir = os.path.dirname(this_dir) stylefile = os.path.join(root_dir, 'pymaps', 'styles', stylename + '.txt') with open(stylefile) as f: style_config = f.read() assert map.style == style_config