@@ -61,19 +61,17 @@ def test_region_create_description(self):
6161 'description' : identity_fakes .region_description ,
6262 'id' : identity_fakes .region_id ,
6363 'parent_region' : None ,
64- 'url' : None ,
6564 }
6665 self .regions_mock .create .assert_called_with (
6766 ** kwargs
6867 )
6968
70- collist = ('description' , 'parent_region' , 'region' , 'url' )
69+ collist = ('description' , 'parent_region' , 'region' )
7170 self .assertEqual (collist , columns )
7271 datalist = (
7372 identity_fakes .region_description ,
7473 identity_fakes .region_parent_region_id ,
7574 identity_fakes .region_id ,
76- identity_fakes .region_url ,
7775 )
7876 self .assertEqual (datalist , data )
7977
@@ -94,19 +92,17 @@ def test_region_create_no_options(self):
9492 'description' : None ,
9593 'id' : identity_fakes .region_id ,
9694 'parent_region' : None ,
97- 'url' : None ,
9895 }
9996 self .regions_mock .create .assert_called_with (
10097 ** kwargs
10198 )
10299
103- collist = ('description' , 'parent_region' , 'region' , 'url' )
100+ collist = ('description' , 'parent_region' , 'region' )
104101 self .assertEqual (collist , columns )
105102 datalist = (
106103 identity_fakes .region_description ,
107104 identity_fakes .region_parent_region_id ,
108105 identity_fakes .region_id ,
109- identity_fakes .region_url ,
110106 )
111107 self .assertEqual (datalist , data )
112108
@@ -129,54 +125,17 @@ def test_region_create_parent_region_id(self):
129125 'description' : None ,
130126 'id' : identity_fakes .region_id ,
131127 'parent_region' : identity_fakes .region_parent_region_id ,
132- 'url' : None ,
133128 }
134129 self .regions_mock .create .assert_called_with (
135130 ** kwargs
136131 )
137132
138- collist = ('description' , 'parent_region' , 'region' , 'url' )
133+ collist = ('description' , 'parent_region' , 'region' )
139134 self .assertEqual (collist , columns )
140135 datalist = (
141136 identity_fakes .region_description ,
142137 identity_fakes .region_parent_region_id ,
143138 identity_fakes .region_id ,
144- identity_fakes .region_url ,
145- )
146- self .assertEqual (datalist , data )
147-
148- def test_region_create_url (self ):
149- arglist = [
150- identity_fakes .region_id ,
151- '--url' , identity_fakes .region_url ,
152- ]
153- verifylist = [
154- ('region' , identity_fakes .region_id ),
155- ('url' , identity_fakes .region_url ),
156- ]
157- parsed_args = self .check_parser (self .cmd , arglist , verifylist )
158-
159- # DisplayCommandBase.take_action() returns two tuples
160- columns , data = self .cmd .take_action (parsed_args )
161-
162- # Set expected values
163- kwargs = {
164- 'description' : None ,
165- 'id' : identity_fakes .region_id ,
166- 'parent_region' : None ,
167- 'url' : identity_fakes .region_url ,
168- }
169- self .regions_mock .create .assert_called_with (
170- ** kwargs
171- )
172-
173- collist = ('description' , 'parent_region' , 'region' , 'url' )
174- self .assertEqual (collist , columns )
175- datalist = (
176- identity_fakes .region_description ,
177- identity_fakes .region_parent_region_id ,
178- identity_fakes .region_id ,
179- identity_fakes .region_url ,
180139 )
181140 self .assertEqual (datalist , data )
182141
@@ -233,13 +192,12 @@ def test_region_list_no_options(self):
233192 columns , data = self .cmd .take_action (parsed_args )
234193 self .regions_mock .list .assert_called_with ()
235194
236- collist = ('Region' , 'Parent Region' , 'Description' , 'URL' )
195+ collist = ('Region' , 'Parent Region' , 'Description' )
237196 self .assertEqual (collist , columns )
238197 datalist = ((
239198 identity_fakes .region_id ,
240199 identity_fakes .region_parent_region_id ,
241200 identity_fakes .region_description ,
242- identity_fakes .region_url ,
243201 ), )
244202 self .assertEqual (datalist , tuple (data ))
245203
@@ -257,13 +215,12 @@ def test_region_list_parent_region_id(self):
257215 self .regions_mock .list .assert_called_with (
258216 parent_region_id = identity_fakes .region_parent_region_id )
259217
260- collist = ('Region' , 'Parent Region' , 'Description' , 'URL' )
218+ collist = ('Region' , 'Parent Region' , 'Description' )
261219 self .assertEqual (collist , columns )
262220 datalist = ((
263221 identity_fakes .region_id ,
264222 identity_fakes .region_parent_region_id ,
265223 identity_fakes .region_description ,
266- identity_fakes .region_url ,
267224 ), )
268225 self .assertEqual (datalist , tuple (data ))
269226
@@ -319,29 +276,6 @@ def test_region_set_description(self):
319276 ** kwargs
320277 )
321278
322- def test_region_set_url (self ):
323- arglist = [
324- '--url' , 'new url' ,
325- identity_fakes .region_id ,
326- ]
327- verifylist = [
328- ('url' , 'new url' ),
329- ('region' , identity_fakes .region_id ),
330- ]
331- parsed_args = self .check_parser (self .cmd , arglist , verifylist )
332-
333- result = self .cmd .run (parsed_args )
334- self .assertEqual (0 , result )
335-
336- # Set expected values
337- kwargs = {
338- 'url' : 'new url' ,
339- }
340- self .regions_mock .update .assert_called_with (
341- identity_fakes .region_id ,
342- ** kwargs
343- )
344-
345279 def test_region_set_parent_region_id (self ):
346280 arglist = [
347281 '--parent-region' , 'new_parent' ,
@@ -395,12 +329,11 @@ def test_region_show(self):
395329 identity_fakes .region_id ,
396330 )
397331
398- collist = ('description' , 'parent_region' , 'region' , 'url' )
332+ collist = ('description' , 'parent_region' , 'region' )
399333 self .assertEqual (collist , columns )
400334 datalist = (
401335 identity_fakes .region_description ,
402336 identity_fakes .region_parent_region_id ,
403337 identity_fakes .region_id ,
404- identity_fakes .region_url ,
405338 )
406339 self .assertEqual (datalist , data )
0 commit comments