def test_get_new_command(command, new_command): assert get_new_command(command) == new_command
def test_get_new_command(command, new_command): assert get_new_command(command, None) == new_command
def test_get_new_command(): assert get_new_command(Command('mkdir foo/bar/baz', '', ''), None) == 'mkdir -p foo/bar/baz'