Esempio n. 1
0
def test_not_match():
    assert not match(Command(), None)
Esempio n. 2
0
def test_not_match():
    assert not match(Command(), None)
Esempio n. 3
0
def test_match(stderr, stdout):
    assert match(Command(stderr=stderr, stdout=stdout), None)
Esempio n. 4
0
def test_not_match():
    assert not match(Command())
    assert not match(Command(script='sudo ls', stderr='Permission denied'))
Esempio n. 5
0
def test_match(stderr, stdout):
    assert match(Command(stderr=stderr, stdout=stdout), None)
Esempio n. 6
0
def test_match(stderr):
    assert match(Command(stderr=stderr), None)
Esempio n. 7
0
def test_not_match():
    assert not match(Command())
    assert not match(Command(script='sudo ls', stderr='Permission denied'))
Esempio n. 8
0
def test_match(output):
    assert match(Command('', output))
Esempio n. 9
0
def test_not_match():
    assert not match(Command('', ''))
    assert not match(Command('sudo ls', 'Permission denied'))
Esempio n. 10
0
def test_not_match():
    assert not match(Command("", ""))
    assert not match(Command("sudo ls", "Permission denied"))
Esempio n. 11
0
def test_match():
    assert match(Command('', '', 'Permission denied'), None)
    assert match(Command('', '', 'permission denied'), None)
    assert match(Command('', '', "npm ERR! Error: EACCES, unlink"), None)
    assert not match(Command('', '', ''), None)
Esempio n. 12
0
def test_not_match():
    assert not match(Command('', ''))
    assert not match(Command('sudo ls', 'Permission denied'))
Esempio n. 13
0
def test_match(output):
    assert match(Command('', output))
Esempio n. 14
0
def test_match(stderr):
    assert match(Command(stderr=stderr), None)