@testing.requires_testing_data
@requires_traits
def test_subject_source():
    """Test SubjectSelector"""
    from mne.gui._file_traits import MRISubjectSource

    mri = MRISubjectSource()
    mri.subjects_dir = subjects_dir
    assert_true('sample' in mri.subjects)
    mri.subject = 'sample'
dataset/ETHPy150Open mne-tools/mne-python/mne/gui/tests/test_file_traits.py/test_subject_source/original