File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed
Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,6 @@ def take_action(self, parsed_args):
183183 rules = rules )
184184
185185 mapping ._info .pop ('links' , None )
186- return zip (* sorted (six .iteritems (mapping ._info )))
187186
188187
189188class ShowMapping (command .ShowOne ):
Original file line number Diff line number Diff line change @@ -181,16 +181,12 @@ def test_set_new_rules(self):
181181 mocker .return_value = identity_fakes .MAPPING_RULES_2
182182 with mock .patch ("openstackclient.identity.v3.mapping."
183183 "SetMapping._read_rules" , mocker ):
184- columns , data = self .cmd .take_action (parsed_args )
184+ result = self .cmd .take_action (parsed_args )
185185 self .mapping_mock .update .assert_called_with (
186186 mapping = identity_fakes .mapping_id ,
187187 rules = identity_fakes .MAPPING_RULES_2 )
188188
189- collist = ('id' , 'rules' )
190- self .assertEqual (collist , columns )
191- datalist = (identity_fakes .mapping_id ,
192- identity_fakes .MAPPING_RULES_2 )
193- self .assertEqual (datalist , data )
189+ self .assertIsNone (result )
194190
195191 def test_set_rules_wrong_file_path (self ):
196192 arglist = [
You can’t perform that action at this time.
0 commit comments