def test_match(brew_unknown_cmd):
    assert match(Command("brew inst", stderr=brew_unknown_cmd), None)
    for command in brew_commands:
        assert not match(Command("brew " + command), None)
def test_match(brew_unknown_cmd):
    assert match(Command('brew inst', brew_unknown_cmd))
    for command in _brew_commands():
        assert not match(Command('brew ' + command, ''))
示例#3
0
def test_match(brew_unknown_cmd):
    assert match(Command('brew inst', stderr=brew_unknown_cmd), None)
    for command in brew_commands:
        assert not match(Command('brew ' + command), None)
def test_match(brew_unknown_cmd):
    assert match(Command("brew inst", brew_unknown_cmd))
    for command in _brew_commands():
        assert not match(Command("brew " + command, ""))
def test_match(brew_unknown_cmd):
    assert match(Command('brew inst', brew_unknown_cmd))
    for command in _brew_commands():
        assert not match(Command('brew ' + command, ''))
def test_match(brew_unknown_cmd):
    assert match(Command('brew inst', stderr=brew_unknown_cmd), None)
    for command in _brew_commands():
        assert not match(Command('brew ' + command), None)