Example #1
0
def test_not_match(command):
    assert not match(command, None)
Example #2
0
def test_match(output, script, target):
    assert match(Command(script, output))
Example #3
0
def test_not_match(path_exists, output, script, target, exists):
    path_exists.return_value = exists
    assert not match(Command(script, output))
Example #4
0
def test_match(stderr, script, target):
    assert match(Command(script=script, stderr=stderr))
Example #5
0
def test_not_match(path_exists, stderr, script, target, exists):
    path_exists.return_value = exists
    assert not match(Command(script=script, stderr=stderr))
Example #6
0
def test_match(output, script, target):
    assert match(Command(script, output))
Example #7
0
def test_not_match(path_exists, output, script, target, exists):
    path_exists.return_value = exists
    assert not match(Command(script, output))
Example #8
0
def test_not_match(script):
    assert not match(Command(script=script, stderr=''))
Example #9
0
def test_match(stderr, script, target):
    assert match(Command(script=script, stderr=stderr))
Example #10
0
def test_match(command):
    assert match(command)
Example #11
0
def test_not_match(script):
    assert not match(Command(script=script, stderr=''))
Example #12
0
def test_not_match(path_exists, stderr, script, target, exists):
    path_exists.return_value = exists
    assert not match(Command(script=script, stderr=stderr))