#NEWLINE# def test_object_list_objects_limit( self , o_mock ) : #NEWLINE# #INDENT# o_mock . return_value = [ copy . deepcopy ( object_fakes . OBJECT_2 ) ] #NEWLINE# arglist = [ '--limit' , '2' , object_fakes . container_name_2 ] #NEWLINE# verifylist = [ ( 'limit' , 2 ) , ( 'container' , object_fakes . container_name_2 ) ] #NEWLINE# parsed_args = self . check_parser ( self . cmd , arglist , verifylist ) #NEWLINE# ( columns , data ) = self . cmd . take_action ( parsed_args ) #NEWLINE# kwargs = { #NEWLINE# #INDENT# 'limit' : 2 , #NEWLINE# #UNINDENT# } #NEWLINE# o_mock . assert_called_with ( container = object_fakes . container_name_2 , ** kwargs ) #NEWLINE# self . assertEqual ( self . columns , columns ) #NEWLINE# self . assertEqual ( o_mock . datalist , tuple ( data ) )