def test_names(): """ Test the regressor naming function """ name = 'con' assert_equal(_regressor_names(name, 'spm'), ['con']) assert_equal(_regressor_names(name, 'spm_time'), ['con', 'con_derivative']) assert_equal(_regressor_names(name, 'spm_time_dispersion'), ['con', 'con_derivative', 'con_dispersion']) assert_equal(_regressor_names(name, 'canonical'), ['con']) assert_equal(_regressor_names(name, 'canonical with derivative'), ['con', 'con_derivative'])
def test_names(): """ Test the regressor naming function """ name = "con" assert_equal(_regressor_names(name, "spm"), ["con"]) assert_equal(_regressor_names(name, "spm + derivative"), ["con", "con_derivative"]) assert_equal(_regressor_names(name, "spm + derivative + dispersion"), ["con", "con_derivative", "con_dispersion"]) assert_equal(_regressor_names(name, "glover"), ["con"]) assert_equal(_regressor_names(name, "glover + derivative"), ["con", "con_derivative"]) assert_equal( _regressor_names(name, "glover + derivative + dispersion"), ["con", "con_derivative", "con_dispersion"] )
def test_names(): """ Test the regressor naming function """ name = 'con' assert_equal(_regressor_names(name, 'spm'), ['con']) assert_equal(_regressor_names(name, 'spm + derivative'), ['con', 'con_derivative']) assert_equal(_regressor_names(name, 'spm + derivative + dispersion'), ['con', 'con_derivative', 'con_dispersion']) assert_equal(_regressor_names(name, 'glover'), ['con']) assert_equal(_regressor_names(name, 'glover + derivative'), ['con', 'con_derivative']) assert_equal(_regressor_names(name, 'glover + derivative + dispersion'), ['con', 'con_derivative', 'con_dispersion'])