def test_node_joinsource(tmpdir):
 os.chdir(str(tmpdir))
 wf = pe.Workflow(name=u'test')
 inputspec = pe.Node(IdentityInterface(fields=[u'n']), name=u'inputspec')
 inputspec.iterables = [(u'n', [1, 2])]
 join = pe.JoinNode(SetInterface(), joinsource=inputspec, joinfield=u'input1', name=u'join')
 assert (join.joinsource == inputspec.name), u'The joinsource is not set to the node name.'

def test_node_joinsource ( tmpdir ) : os . chdir ( str ( tmpdir ) ) wf = pe . Workflow ( name = u'test' ) inputspec = pe . Node ( IdentityInterface ( fields = [ u'n' ] ) , name = u'inputspec' ) inputspec . iterables = [ ( u'n' , [ 1 , 2 ] ) ] join = pe . JoinNode ( SetInterface ( ) , joinsource = inputspec , joinfield = u'input1' , name = u'join' ) assert ( join . joinsource == inputspec . name ) , u'The joinsource is not set to the node name.'
test setting the joinsource to a node .