#NEWLINE# def test_extra_parameters( self ) : #NEWLINE# #INDENT# get = params . parse ( [ ( 'foo' , { #NEWLINE# #INDENT# 'validators' : self . bar_validator , #NEWLINE# 'required' : True , #NEWLINE# #UNINDENT# } ) ] ) ( self . handler . get ) #NEWLINE# self . assertRaises ( web . HTTPError , get , get . handler ) #NEWLINE# self . handler . request . arguments [ 'foo' ] = 'Foobar' #NEWLINE# self . handler . request . arguments [ 'extra' ] = 'Do Not Want' #NEWLINE# get ( self . handler ) #NEWLINE# self . bar_validator . validate . assert_called_with ( 'Foobar' , self . handler ) #NEWLINE# self . handler . get . assert_called_with ( self . handler , foo = 'bar' )