def test_not_match(file_exists, file_access, script, stderr, exists, callable):
    file_exists.return_value = exists
    file_access.return_value = callable
    assert not match(Command(script, stderr=stderr))
def test_match(script, stderr):
    assert match(Command(script, stderr=stderr))
Exemple #3
0
def test_not_match(file_exists, file_access, script, output, exists, callable):
    file_exists.return_value = exists
    file_access.return_value = callable
    assert not match(Command(script, output))
Exemple #4
0
def test_match(script, output):
    assert match(Command(script, output))
Exemple #5
0
def test_match(script, output):
    assert match(Command(script, output))
Exemple #6
0
def test_match(script, stderr):
    assert match(Command(script, stderr=stderr))