mirror of https://github.com/QMCPACK/qmcpack.git
24 lines
394 B
Python
24 lines
394 B
Python
|
|
|
|
def test_import():
|
|
from execute import execute
|
|
#end def test_import
|
|
|
|
|
|
|
|
def test_execute():
|
|
from execute import execute
|
|
|
|
command = 'echo test'
|
|
|
|
out,err,rc = execute(command,skip=True)
|
|
assert(out=='')
|
|
assert(err=='')
|
|
assert(rc==0)
|
|
|
|
out,err,rc = execute(command)
|
|
assert(out.strip()=='test')
|
|
assert(err.strip()=='')
|
|
assert(rc==0)
|
|
#end def test_execute
|