01c53508f7b9e8d274378074383854ca8eaf259f,dipy/viz/tests/test_ui.py,,test_ui_radio_button,#Any#,629

Before Change


                ["option 4"], ["option 4"]]
    assert len(selected_option) == len(expected)
    assert_arrays_equal(selected_option, expected)
    del show_manager

    if interactive:
        radio_button_test = ui.RadioButton(
            labels=["option 1", "option 2\nOption 2", "option 3", "option 4"],

After Change


    if mode == "interactive":
        show_manager.start()
        
    elif mode == "record":
        // Recorded events:
        //  1. Click on button of option 1.
        //  2. Click on button of option 2.
        //  3. Click on button of option 2.
        //  4. Click on text of option 2.
        //  5. Click on button of option 1.
        //  6. Click on text of option 3.
        //  7. Click on button of option 4.
        //  8. Click on text of option 4.
        show_manager.record_events_to_file(recording_filename)
        print(list(event_counter.events_counts.items()))
        event_counter.save(expected_events_counts_filename)
    
    else:
        show_manager.play_events_from_file(recording_filename)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: nipy/dipy
Commit Name: 01c53508f7b9e8d274378074383854ca8eaf259f
Time: 2018-08-13
Author: marc.cote.19@gmail.com
File Name: dipy/viz/tests/test_ui.py
Class Name:
Method Name: test_ui_radio_button


Project Name: dPys/PyNets
Commit Name: 119d1b9063ac43d96622f40e9bffebbefa2a732f
Time: 2018-06-18
Author: dpisner@utexas.edu
File Name: pynets/plotting.py
Class Name:
Method Name: plot_all


Project Name: nipy/dipy
Commit Name: 1be33cd9da7d32fd05d411207df91c1ea08c93c5
Time: 2015-03-16
Author: arokem@gmail.com
File Name: dipy/tracking/life.py
Class Name: FiberModel
Method Name: setup