#NEWLINE# def test_parse_cookie_str( self ) : #NEWLINE# #INDENT# cookie_str = 'foo=2013-06-04T01:08:58.262162|bar=2013-06-04T01:08:58' #NEWLINE# res = parse_cookie_str ( cookie_str ) #NEWLINE# dic = { #NEWLINE# #INDENT# 'foo' : '2013-06-04T01:08:58.262162' , #NEWLINE# 'bar' : '2013-06-04T01:08:58' , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertEqual ( res , dic )