#NEWLINE# def test_inplace_mode( self ) : #NEWLINE# #INDENT# '\n        Inplace mode of get_entites, should return all entities in a single batch.\n        ' #NEWLINE# response = self . client . post ( '/get-entities/' , { #NEWLINE# #INDENT# 'project' : self . resource . project . slug , #NEWLINE# 'locale' : self . locale . code , #NEWLINE# 'paths[]' : [ self . resource . path ] , #NEWLINE# 'inplaceEditor' : True , #NEWLINE# 'limit' : 1 , #NEWLINE# #UNINDENT# } , HTTP_X_REQUESTED_WITH = 'XMLHttpRequest' ) #NEWLINE# assert_code ( response , 200 ) #NEWLINE# assert_equal ( response . json ( ) [ 'has_next' ] , False ) #NEWLINE# assert_equal ( [ e [ 'pk' ] for e in response . json ( ) [ 'entities' ] ] , e . entities_pks )