Show More
@@ -223,13 +223,12 b' def test_list_tuple_3_float():' | |||||
223 | def test_list_tuple_str(): |
|
223 | def test_list_tuple_str(): | |
224 | values = ['hello', 'there', 'guy'] |
|
224 | values = ['hello', 'there', 'guy'] | |
225 | first = values[0] |
|
225 | first = values[0] | |
226 | dvalues = OrderedDict((v,v) for v in values) |
|
|||
227 | c = interactive(f, tup=tuple(values), lis=list(values)) |
|
226 | c = interactive(f, tup=tuple(values), lis=list(values)) | |
228 | nt.assert_equal(len(c.children), 2) |
|
227 | nt.assert_equal(len(c.children), 2) | |
229 | d = dict( |
|
228 | d = dict( | |
230 | cls=widgets.Dropdown, |
|
229 | cls=widgets.Dropdown, | |
231 | value=first, |
|
230 | value=first, | |
232 |
values= |
|
231 | values=values | |
233 | ) |
|
232 | ) | |
234 | check_widgets(c, tup=d, lis=d) |
|
233 | check_widgets(c, tup=d, lis=d) | |
235 |
|
234 | |||
@@ -292,7 +291,7 b' def test_default_values():' | |||||
292 | ), |
|
291 | ), | |
293 | j=dict( |
|
292 | j=dict( | |
294 | cls=widgets.Dropdown, |
|
293 | cls=widgets.Dropdown, | |
295 |
values= |
|
294 | values=['hi', 'there'], | |
296 | value='there' |
|
295 | value='there' | |
297 | ), |
|
296 | ), | |
298 | ) |
|
297 | ) | |
@@ -315,7 +314,7 b' def test_default_out_of_bounds():' | |||||
315 | ), |
|
314 | ), | |
316 | j=dict( |
|
315 | j=dict( | |
317 | cls=widgets.Dropdown, |
|
316 | cls=widgets.Dropdown, | |
318 |
values= |
|
317 | values=['hi', 'there'], | |
319 | value='hi', |
|
318 | value='hi', | |
320 | ), |
|
319 | ), | |
321 | ) |
|
320 | ) |
General Comments 0
You need to be logged in to leave comments.
Login now