コード例 #1
0
def test_match(git_not_command, git_command):
    assert match(Command('git brnch', '', git_not_command), None)
    assert not match(Command('ls brnch', '', git_not_command), None)
    assert not match(Command('git branch', '', git_command), None)
コード例 #2
0
def test_match(git_not_command, git_command, git_not_command_one_of_this):
    assert match(Command('git brnch', stderr=git_not_command), None)
    assert match(Command('git st', stderr=git_not_command_one_of_this), None)
    assert not match(Command('ls brnch', stderr=git_not_command), None)
    assert not match(Command('git branch', stderr=git_command), None)
コード例 #3
0
def test_match(git_not_command, git_command, git_not_command_one_of_this):
    assert match(Command("git brnch", git_not_command))
    assert match(Command("git st", git_not_command_one_of_this))
    assert not match(Command("ls brnch", git_not_command))
    assert not match(Command("git branch", git_command))