예제 #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
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
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
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'