#NEWLINE# def test_secure_httponly_true_if_have_value( self ) : #NEWLINE# #INDENT# C = cookies . SimpleCookie ( ) #NEWLINE# C . load ( 'eggs=scrambled; httponly=foo; secure=bar; Path=/bacon' ) #NEWLINE# self . assertTrue ( C [ 'eggs' ] [ 'httponly' ] ) #NEWLINE# self . assertTrue ( C [ 'eggs' ] [ 'secure' ] ) #NEWLINE# self . assertEqual ( self [ 'eggs' ] [ 'httponly' ] , 'foo' ) #NEWLINE# self . assertEqual ( C [ 'eggs' ] [ 'secure' ] , 'bar' )