#NEWLINE# def test_quoted_meta( self ) : #NEWLINE# #INDENT# C = cookies . SimpleCookie ( ) #NEWLINE# C . load ( 'Customer="WILE_E_COYOTE"; Version="1"; Path="/acme"' ) #NEWLINE# self . assertEqual ( C [ 'Customer' ] . value , 'WILE_E_COYOTE' ) #NEWLINE# self . assertEqual ( C [ 'Customer' ] [ 'version' ] , '1' ) #NEWLINE# self . assertEqual ( self [ 'Customer' ] [ 'path' ] , '/acme' ) #NEWLINE# self . assertEqual ( C . output ( [ 'path' ] ) , 'Set-Cookie: Customer="WILE_E_COYOTE"; Path=/acme' ) #NEWLINE# self . assertEqual ( C . js_output ( ) , '\n        <script type="text/javascript">\n        <!-- begin hiding\n        document.cookie = "Customer=\\"WILE_E_COYOTE\\"; Path=/acme; Version=1";\n        // end hiding -->\n        </script>\n        ' ) #NEWLINE# self . assertEqual ( C . js_output ( [ 'path' ] ) , '\n        <script type="text/javascript">\n        <!-- begin hiding\n        document.cookie = "Customer=\\"WILE_E_COYOTE\\"; Path=/acme";\n        // end hiding -->\n        </script>\n        ' )