#NEWLINE# @ testing . requires_testing_data #NEWLINE# @ requires_freesurfer #NEWLINE# @ requires_nibabel ( ) #NEWLINE# def test_get_volume_label_names( ) : #NEWLINE# #INDENT# 'Test reading volume label names\n    ' #NEWLINE# aseg_fname = op . join ( subjects_dir , 'sample' , 'mri' , 'aseg.mgz' ) #NEWLINE# label_names = get_volume_labels_from_aseg ( aseg_fname ) #NEWLINE# assert_equal ( label_names . count ( 'Brain-Stem' ) , 1 )