@@ -116,25 +116,27 @@ def test_simple_marker(self):
116116 #Single Simple marker
117117 self .map .simple_marker (location = [45.50 , - 122.7 ])
118118 mark_1 = mark_templ .render ({'marker' : 'marker_1' , 'lat' : 45.50 ,
119- 'lon' : - 122.7 })
119+ 'lon' : - 122.7 ,
120+ 'icon' : "{'icon':marker_1_icon}" })
120121 popup_1 = popup_templ .render ({'pop_name' : 'marker_1' ,
121- 'pop_txt' : 'Pop Text' })
122- assert self .map .template_vars ['markers ' ][0 ][0 ] == mark_1
123- assert self .map .template_vars ['markers ' ][0 ][1 ] == popup_1
122+ 'pop_txt' : json . dumps ( 'Pop Text' ) })
123+ assert self .map .template_vars ['custom_markers ' ][0 ][1 ] == mark_1
124+ assert self .map .template_vars ['custom_markers ' ][0 ][2 ] == popup_1
124125
125126 #Test Simple marker addition
126127 self .map .simple_marker (location = [45.60 , - 122.8 ], popup = 'Hi' )
127128 mark_2 = mark_templ .render ({'marker' : 'marker_2' , 'lat' : 45.60 ,
128- 'lon' : - 122.8 })
129+ 'lon' : - 122.8 ,
130+ 'icon' : "{'icon':marker_2_icon}" })
129131 popup_2 = popup_templ .render ({'pop_name' : 'marker_2' ,
130- 'pop_txt' : 'Hi' })
132+ 'pop_txt' : json . dumps ( 'Hi' ) })
131133 assert self .map .mark_cnt ['simple' ] == 2
132- assert self .map .template_vars ['markers ' ][1 ][0 ] == mark_2
133- assert self .map .template_vars ['markers ' ][1 ][1 ] == popup_2
134+ assert self .map .template_vars ['custom_markers ' ][1 ][1 ] == mark_2
135+ assert self .map .template_vars ['custom_markers ' ][1 ][2 ] == popup_2
134136
135137 #Test no popup
136138 self .map .simple_marker (location = [45.60 , - 122.8 ], popup_on = False )
137- assert self .map .template_vars ['markers ' ][2 ][1 ] == 'var no_pop = null;'
139+ assert self .map .template_vars ['custom_markers ' ][2 ][2 ] == 'var no_pop = null;'
138140
139141 def test_circle_marker (self ):
140142 '''Test circle marker additions'''
@@ -214,7 +216,7 @@ def test_vega_popup(self):
214216 'max_width' : 900 ,
215217 'json_out' : 'vis.json' ,
216218 'vega_id' : '#vis' })
217- assert self .map .template_vars ['markers ' ][0 ][1 ] == vega
219+ assert self .map .template_vars ['custom_markers ' ][0 ][2 ] == vega
218220
219221 def test_geo_json (self ):
220222 '''Test geojson method'''
0 commit comments