#NEWLINE# def test_sub_command( ) : #NEWLINE# #INDENT# shell_stuff = ' $`\'" \\ ' #NEWLINE# echo = clom . echo ( shell_stuff ) #NEWLINE# assert ( str ( echo ) == 'echo \' $`\'\\\'\'" \\ \'' ) #NEWLINE# assert ( echo . shell ( ) == shell_stuff ) #NEWLINE# echo_twice = clom . echo ( echo , shell_stuff ) #NEWLINE# assert ( str ( echo_twice ) == 'echo "$(echo \' $`\'\\\'\'" \\ \')" \' $`\'\\\'\'" \\ \'' ) #NEWLINE# assert ( str ( echo_twice . shell ( ) ) == ( ( shell_stuff + ' ' ) + shell_stuff ) )