コード例 #1
0
ファイル: test_git_pull.py プロジェクト: mengdaya/fuckshell
def test_match(stderr):
    assert match(Command('git pull', stderr=stderr))
    assert not match(Command('git pull'))
    assert not match(Command('ls', stderr=stderr))
コード例 #2
0
def test_match(output):
    assert match(Command('git pull', output))
    assert not match(Command('git pull', ''))
    assert not match(Command('ls', output))
コード例 #3
0
def test_match(output):
    assert match(Command("git pull", output))
    assert not match(Command("git pull", ""))
    assert not match(Command("ls", output))
コード例 #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))
コード例 #5
0
ファイル: test_git_pull.py プロジェクト: Clpsplug/thefuck
def test_match(output):
    assert match(Command('git pull', output))
    assert not match(Command('git pull', ''))
    assert not match(Command('ls', output))