#NEWLINE# def test_sign( self ) : #NEWLINE# #INDENT# key = 'abc123' #NEWLINE# qs_list = [ 'x=1&y=2&z=3' , 'x=%20%2B%2F!%40%23%24%25%5E%26' ] #NEWLINE# for qs in qs_list : #NEWLINE# #INDENT# o = urlparse . parse_qs ( sign ( key , qs ) ) #NEWLINE# self . assertTrue ( ( 'sig' in o ) ) #NEWLINE# self . assertTrue ( o [ 'sig' ] )