Esempio n. 1
0
def test_match():
    assert match(Command('rm foo', '', 'rm: foo: is a directory'), None)
    assert not match(Command('rm foo', '', ''), None)
    assert not match(Command('rm foo', '', 'foo bar baz'), None)
    assert not match(Command('', '', ''), None)
Esempio n. 2
0
def test_match(command):
    assert match(command)
Esempio n. 3
0
def test_not_match(command):
    assert not match(command)
Esempio n. 4
0
def test_match(command):
    assert match(command, None)
    assert match(command, None)