示例#1
0
def test_get_new_command(stderr):
    assert (get_new_command(Command('git pull', stderr=stderr)) ==
            "git branch --set-upstream-to=origin/master master && git pull")
示例#2
0
def test_get_new_command(stderr):
    assert get_new_command(Command('git pull', stderr=stderr)) \
           == "git branch --set-upstream-to=origin/master master && git pull"
示例#3
0
def test_get_new_command(output):
    assert (get_new_command(Command('git pull', output)) ==
            "git branch --set-upstream-to=origin/master master && git pull")
示例#4
0
def test_get_new_command(output):
    assert (get_new_command(Command('git pull', output))
            == "git branch --set-upstream-to=origin/master master && git pull")