def test_label_subject():
 label = read_label(label_fname)
 assert_is(label.subject, None)
 assert_true(('unknown' in repr(label)))
 label = read_label(label_fname, subject='fsaverage')
 assert_true((label.subject == 'fsaverage'))
 assert_true(('fsaverage' in repr(label)))

def test_label_subject ( ) : label = read_label ( label_fname ) assert_is ( label . subject , None ) assert_true ( ( 'unknown' in repr ( label ) ) ) label = read_label ( label_fname , subject = 'fsaverage' ) assert_true ( ( label . subject == 'fsaverage' ) ) assert_true ( ( 'fsaverage' in repr ( label ) ) )
test label subject name extraction .