Ejemplo n.º 1
0
def test_match(stderr):
    assert match(Command('git pull', stderr=stderr))
    assert not match(Command('git pull'))
    assert not match(Command('ls', stderr=stderr))
Ejemplo n.º 2
0
def test_match(output):
    assert match(Command('git pull', output))
    assert not match(Command('git pull', ''))
    assert not match(Command('ls', output))
Ejemplo n.º 3
0
def test_match(output):
    assert match(Command("git pull", output))
    assert not match(Command("git pull", ""))
    assert not match(Command("ls", output))
Ejemplo n.º 4
0
def test_match(stderr):
    assert match(Command('git pull', stderr=stderr))
    assert not match(Command('git pull'))
    assert not match(Command('ls', stderr=stderr))
Ejemplo n.º 5
0
def test_match(output):
    assert match(Command('git pull', output))
    assert not match(Command('git pull', ''))
    assert not match(Command('ls', output))