def test_not_match(script): assert not match(Command(script))
def test_match(script): assert match(Command(script, ''))
def test_not_match(script, which_result, which): which.return_value = which_result assert not match(Command(script))
def test_not_match(script, which_result, which): which.return_value = which_result assert not match(Command(script))
def test_match(script): assert match(Command(script, ''))