コード例 #1
0
def test_get_new_command():
    assert get_new_command(Command(script='ls file.py'),
                           None) == 'ls -lah file.py'
    assert get_new_command(Command(script='ls'), None) == 'ls -lah'
コード例 #2
0
ファイル: test_ls_lah.py プロジェクト: crazyquark/thefuck
def test_get_new_command():
    assert get_new_command(Mock(script="ls file.py"), None) == "ls -lah file.py"
    assert get_new_command(Mock(script="ls"), None) == "ls -lah"
コード例 #3
0
def test_get_new_command():
    assert get_new_command(Command("ls file.py", "")) == "ls -lah file.py"
    assert get_new_command(Command("ls", "")) == "ls -lah"
コード例 #4
0
ファイル: test_ls_lah.py プロジェクト: roth1002/thefuck
def test_get_new_command():
    assert get_new_command(Command(script='ls file.py'), None) == 'ls -lah file.py'
    assert get_new_command(Command(script='ls'), None) == 'ls -lah'
コード例 #5
0
ファイル: test_ls_lah.py プロジェクト: Clpsplug/thefuck
def test_get_new_command():
    assert get_new_command(Command('ls file.py', '')) == 'ls -lah file.py'
    assert get_new_command(Command('ls', '')) == 'ls -lah'