Factor out the duplication in the node functional script tests.
Factor out the duplication in the node functional script tests.

LaynePeng/flocker,adamtheturtle/flocker,AndyHuu/flocker,agonzalezro/flocker,1d4Nf6/flocker,w4ngyi/flocker,achanda/flocker,runcom/flocker,LaynePeng/flocker,AndyHuu/flocker,moypray/flocker,Azulinho/flocker,runcom/flocker,lukemarsden/flocker,jml/flocker,agonzalezro/flocker,agonzalezro/flocker,lukemarsden/flocker,hackday-profilers/flocker,Azulinho/flocker,lukemarsden/flocker,jml/flocker,1d4Nf6/flocker,1d4Nf6/flocker,mbrukman/flocker,AndyHuu/flocker,runcom/flocker,moypray/flocker,wallnerryan/flocker-profiles,w4ngyi/flocker,LaynePeng/flocker,mbrukman/flocker,adamtheturtle/flocker,achanda/flocker,adamtheturtle/flocker,jml/flocker,wallnerryan/flocker-profiles,moypray/flocker,hackday-profilers/flocker,w4ngyi/flocker,wallnerryan/flocker-profiles,hackday-profilers/flocker,mbrukman/flocker,achanda/flocker,Azulinho/flocker