#NEWLINE# def test_add_extra_params( self ) : #NEWLINE# #INDENT# frontier = self . project . frontier #NEWLINE# qdata = { #NEWLINE# #INDENT# 'a' : 1 , #NEWLINE# 'b' : 2 , #NEWLINE# 'c' : 3 , #NEWLINE# #UNINDENT# } #NEWLINE# fps = [ { #NEWLINE# #INDENT# 'fp' : '/' , #NEWLINE# 'qdata' : qdata , #NEWLINE# #UNINDENT# } ] #NEWLINE# frontier . add ( self . frontier , self . slot , fps ) #NEWLINE# frontier . flush ( ) #NEWLINE# expected_request = [ [ '/' , { #NEWLINE# #INDENT# 'a' : 1 , #NEWLINE# 'c' : 3 , #NEWLINE# 'b' : 2 , #NEWLINE# #UNINDENT# } ] ] #NEWLINE# batches = list ( frontier . read ( self . frontier , self . slot ) ) #NEWLINE# request = batches [ 0 ] [ 'requests' ] #NEWLINE# self . assertEqual ( fps , expected_request )