#NEWLINE# def test_filter_changed_new_filter_sent( self ) : #NEWLINE# #INDENT# req = self . factory . post ( '/my_url/' , { #NEWLINE# #INDENT# self . fil_value_param : 'down' , #NEWLINE# self . fil_field_param : 'status' , #NEWLINE# #UNINDENT# } ) #NEWLINE# req . session [ self . fil_value_param ] = 'up' #NEWLINE# req . session [ self . fil_field_param ] = 'status' #NEWLINE# req . user = self . user #NEWLINE# view = self . _test_filter_setup_view ( req ) #NEWLINE# context = view . get_context_data ( ) #NEWLINE# self . assertEqual ( view [ 'table' ] . __class__ , MyServerFilterTable ) #NEWLINE# self . assertEqual ( req . session . get ( self . fil_value_param ) , 'down' ) #NEWLINE# self . assertEqual ( req . session . get ( self . fil_field_param ) , 'status' )