Exemplo 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)
Exemplo n.º 2
0
def test_match(command):
    assert match(command)
Exemplo n.º 3
0
def test_not_match(command):
    assert not match(command)
Exemplo n.º 4
0
def test_match(command):
    assert match(command, None)
    assert match(command, None)