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'
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"
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"
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'
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'