#NEWLINE# def test_saves_arguments_and_keywords_arguments_to_the_instance( self ) : #NEWLINE# #INDENT# flexmock ( MethodView ) . should_receive ( 'dispatch_request' ) . with_args ( 'foo' , bar = 'xyzzy' ) . and_return ( 'dispatch_request' ) #NEWLINE# view = BaseView ( ) #NEWLINE# view . dispatch_request ( 'foo' , bar = 'xyzzy' ) #NEWLINE# assert ( view . args == ( 'foo' , ) ) #NEWLINE# assert ( view . kwargs == { #NEWLINE# #INDENT# 'bar' : 'xyzzy' , #NEWLINE# #UNINDENT# } )