Esempio n. 1
0
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))
Esempio n. 2
0
def test_match(script, stderr):
    assert match(Command(script, stderr=stderr))
Esempio n. 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))
Esempio n. 4
0
def test_match(script, output):
    assert match(Command(script, output))
Esempio n. 5
0
def test_match(script, output):
    assert match(Command(script, output))
Esempio n. 6
0
def test_match(script, stderr):
    assert match(Command(script, stderr=stderr))