Example #1
0
def test_match(pip_unknown_cmd, pip_unknown_cmd_without_recommend):
    assert match(Command('pip instatl', pip_unknown_cmd))
    assert not match(Command('pip i', pip_unknown_cmd_without_recommend))
def test_match(pip_unknown_cmd, pip_unknown_cmd_without_recommend):
    assert match(Command("pip instatl", stderr=pip_unknown_cmd))
    assert not match(Command("pip i", stderr=pip_unknown_cmd_without_recommend))
Example #3
0
def test_match(pip_unknown_cmd, pip_unknown_cmd_without_recommend):
    assert match(Command('pip instatl', stderr=pip_unknown_cmd), None)
    assert not match(Command('pip i',
                             stderr=pip_unknown_cmd_without_recommend),
                     None)