#NEWLINE# def test_it_should_parse_header_arguments( self ) : #NEWLINE# #INDENT# attrs = { #NEWLINE# #INDENT# 'string' : fields . Str ( ) , #NEWLINE# 'integer' : fields . List ( fields . Int ( ) ) , #NEWLINE# #UNINDENT# } #NEWLINE# request = make_request ( headers = { #NEWLINE# #INDENT# 'string' : 'value' , #NEWLINE# 'integer' : [ '1' , '2' ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# parsed = parser . parse ( attrs , request , locations = [ 'headers' ] ) #NEWLINE# assert ( parsed [ 'string' ] == value ) #NEWLINE# assert ( parsed [ 'integer' ] == [ 1 , 2 ] )