コード例 #1
0
 def _do(runner):
     return validate(runner("echo hci", bap="AOEU"),
                 command="echo hci", artificeBreed="observation",
                 stdout="hci\n", bap="AOEU", duration=lambda x: x>0) and \
            validate(runner("echo rcg"),
                 command="echo rcg", artificeBreed="observation",
                 stdout="rcg\n", bap="not overridden", 
                 duration=lambda x: x>0)
コード例 #2
0
 def vfy(output):
     return validate(output[0], wonky=wonkyVar, 
                     command='ls proscat.py', 
                     stdout=lambda x: 'proscat.py' in x) and \
            validate(output[1], wonky=wonkyVar,
                     command='find . -name "*.py"',
                     stdout=lambda x: 'proscat.py' in x) and \
            validate(output[2],stdout=lambda x: "finding foobitty" in x)
コード例 #3
0
def _tst_prepFinish():
    return validate(_prepFinish({'a':'A'},lambda: 0,'foo','bar','z','x'),
                    a="A", stdout='foo', stderr='bar', 
                    artificeBreed='observation', retCode=0,
                    time=lambda x:x!=0)
コード例 #4
0
def _tst_noteProvidedEvoke():
    return validate(genRunner()("echo bas", jib="boink"),
                    command="echo bas", artificeBreed="observation",
                    stdout="bas\n", jib="boink")
コード例 #5
0
def _tst_noteHandoffEvoke():
    return validate(genRunner(blah="yup")("echo bar"),
                    command="echo bar", artificeBreed="observation",
                    stdout="bar\n", blah="yup")
コード例 #6
0
def _tst_moreEvocation():
    return validate(genRunner()("ls"),
                    command="ls", artificeBreed="observation",
                    stdout=lambda x: "ebproc.py" in x)
コード例 #7
0
def _tst_basicEvocation():
    return validate(genRunner()("echo foo"),
                    command="echo foo", artificeBreed="observation",
                    stdout="foo\n")