1
1
import os
2
+ from nose .tools import assert_true
2
3
from ...base import Undefined
3
4
from ..model import Level1Design
4
5
@@ -9,4 +10,11 @@ def test_level1design():
9
10
contrasts = Undefined
10
11
usetd = False
11
12
do_tempfilter = False
12
- return Level1Design ._create_ev_files (l ,os .getcwd (),runinfo ,runidx ,usetd ,contrasts ,do_tempfilter ,"hrf" )
13
+ output_num , output_txt = Level1Design ._create_ev_files (l ,os .getcwd (),runinfo ,runidx ,usetd ,contrasts ,do_tempfilter ,"hrf" )
14
+ yield assert_true , "set fmri(convolve1) 3" in output_txt
15
+ output_num , output_txt = Level1Design ._create_ev_files (l ,os .getcwd (),runinfo ,runidx ,usetd ,contrasts ,do_tempfilter ,"dgamma" )
16
+ yield assert_true , "set fmri(convolve1) 3" in output_txt
17
+ output_num , output_txt = Level1Design ._create_ev_files (l ,os .getcwd (),runinfo ,runidx ,usetd ,contrasts ,do_tempfilter ,"gamma" )
18
+ yield assert_true , "set fmri(convolve1) 2" in output_txt
19
+ output_num , output_txt = Level1Design ._create_ev_files (l ,os .getcwd (),runinfo ,runidx ,usetd ,contrasts ,do_tempfilter ,"none" )
20
+ yield assert_true , "set fmri(convolve1) 0" in output_txt
0 commit comments