예제 #1
0
def AssertTrue(value, details=None):
    if escargs.args.force:
        return
    global gHaveAsserted
    gHaveAsserted = True
    if value != True:
        Raise(esctypes.TestFailure(value, True, details))
예제 #2
0
def AssertEQ(actual, expected):
    global gHaveAsserted
    gHaveAsserted = True
    if actual != expected:
        Raise(esctypes.TestFailure(actual, expected))
예제 #3
0
파일: escutil.py 프로젝트: sbuzonas/iTerm2
def AssertGE(actual, minimum):
    global gHaveAsserted
    gHaveAsserted = True
    if actual < minimum:
        Raise(esctypes.TestFailure(actual, expected))