@@ -52,7 +52,7 @@ def check_widget(w, **d):
52
52
te = type (expected )
53
53
assert tv is te , "type({}.{}) = {!r} != {!r}" .format (w .__class__ .__name__ , attr , tv , te )
54
54
55
- def check_widgets (container , ** to_check ):
55
+ def check_widget_children (container , ** to_check ):
56
56
"""Check that widgets are created as expected"""
57
57
# build a widget dictionary, so it matches
58
58
widgets = {}
@@ -144,7 +144,7 @@ def test_list_str():
144
144
_options_labels = tuple (values ),
145
145
_options_values = tuple (values ),
146
146
)
147
- check_widgets (c , lis = d )
147
+ check_widget_children (c , lis = d )
148
148
149
149
def test_list_int ():
150
150
values = [3 , 1 , 2 ]
@@ -158,7 +158,7 @@ def test_list_int():
158
158
_options_labels = tuple (str (v ) for v in values ),
159
159
_options_values = tuple (values ),
160
160
)
161
- check_widgets (c , lis = d )
161
+ check_widget_children (c , lis = d )
162
162
163
163
def test_list_tuple ():
164
164
values = [(3 , 300 ), (1 , 100 ), (2 , 200 )]
@@ -172,7 +172,7 @@ def test_list_tuple():
172
172
_options_labels = ("3" , "1" , "2" ),
173
173
_options_values = (300 , 100 , 200 ),
174
174
)
175
- check_widgets (c , lis = d )
175
+ check_widget_children (c , lis = d )
176
176
177
177
def test_list_tuple_invalid ():
178
178
for bad in [
@@ -213,7 +213,7 @@ def test_ordereddict():
213
213
_options_labels = ("3" , "1" , "2" ),
214
214
_options_values = (300 , 100 , 200 ),
215
215
)
216
- check_widgets (c , lis = d )
216
+ check_widget_children (c , lis = d )
217
217
218
218
def test_iterable ():
219
219
def yield_values ():
@@ -230,7 +230,7 @@ def yield_values():
230
230
_options_labels = ("3" , "1" , "2" ),
231
231
_options_values = (3 , 1 , 2 ),
232
232
)
233
- check_widgets (c , lis = d )
233
+ check_widget_children (c , lis = d )
234
234
235
235
def test_iterable_tuple ():
236
236
values = [(3 , 300 ), (1 , 100 ), (2 , 200 )]
@@ -244,7 +244,7 @@ def test_iterable_tuple():
244
244
_options_labels = ("3" , "1" , "2" ),
245
245
_options_values = (300 , 100 , 200 ),
246
246
)
247
- check_widgets (c , lis = d )
247
+ check_widget_children (c , lis = d )
248
248
249
249
def test_mapping ():
250
250
from collections .abc import Mapping
@@ -273,7 +273,7 @@ def items(self):
273
273
_options_labels = ("3" , "1" , "2" ),
274
274
_options_values = (300 , 100 , 200 ),
275
275
)
276
- check_widgets (c , lis = d )
276
+ check_widget_children (c , lis = d )
277
277
278
278
def test_decorator_kwarg (clear_display ):
279
279
with patch .object (interaction , 'display' , record_display ):
0 commit comments