(ax)
| 1099 | |
| 1100 | |
| 1101 | def test_RadioButtons(ax): |
| 1102 | radio = widgets.RadioButtons(ax, ('Radio 1', 'Radio 2', 'Radio 3')) |
| 1103 | radio.set_active(1) |
| 1104 | assert radio.value_selected == 'Radio 2' |
| 1105 | assert radio.index_selected == 1 |
| 1106 | radio.clear() |
| 1107 | assert radio.value_selected == 'Radio 1' |
| 1108 | assert radio.index_selected == 0 |
| 1109 | |
| 1110 | |
| 1111 | @image_comparison(['check_radio_buttons.png'], style='mpl20', remove_text=True) |
nothing calls this directly
no test coverage detected
searching dependent graphs…