@@ -42,7 +42,7 @@ def test_python_output(self):
4242 '-f nested.property=5432' ,
4343 '--output-python' ])
4444
45- self .assertEqual (result . exit_code , 0 )
45+ self .assert_no_fail (result )
4646 # NOTE(kmcdonald): Python 3 no longer inserts 'u' before unicode
4747 # string literals but python 2 does. These are stripped out to make
4848 # this test pass on both python versions.
@@ -72,7 +72,7 @@ def test_options(self):
7272 '-f property=1234' ,
7373 '-f nested.property=5432' ])
7474
75- self .assertEqual (result . exit_code , 0 )
75+ self .assert_no_fail (result )
7676 self .assertEqual (json .loads (result .output ), 'test' )
7777 self .assert_called_with ('SoftLayer_Service' , 'method' ,
7878 mask = 'mask[some.mask]' ,
@@ -94,7 +94,7 @@ def test_object(self):
9494
9595 result = self .run_command (['call-api' , 'Service' , 'method' ])
9696
97- self .assertEqual (result . exit_code , 0 )
97+ self .assert_no_fail (result )
9898 self .assertEqual (json .loads (result .output ),
9999 {'string' : 'string' ,
100100 'int' : 10 ,
@@ -113,7 +113,7 @@ def test_object_table(self):
113113 result = self .run_command (['call-api' , 'Service' , 'method' ],
114114 fmt = 'table' )
115115
116- self .assertEqual (result . exit_code , 0 )
116+ self .assert_no_fail (result )
117117 # NOTE(kmcdonald): Order is not guaranteed
118118 self .assertIn (":........:........:" , result .output )
119119 self .assertIn (": name : value :" , result .output )
@@ -130,7 +130,7 @@ def test_object_nested(self):
130130
131131 result = self .run_command (['call-api' , 'Service' , 'method' ])
132132
133- self .assertEqual (result . exit_code , 0 )
133+ self .assert_no_fail (result )
134134 self .assertEqual (json .loads (result .output ),
135135 {'this' : {'is' : [{'pretty' : 'nested' }]}})
136136
@@ -144,7 +144,7 @@ def test_list(self):
144144
145145 result = self .run_command (['call-api' , 'Service' , 'method' ])
146146
147- self .assertEqual (result . exit_code , 0 )
147+ self .assert_no_fail (result )
148148 self .assertEqual (json .loads (result .output ),
149149 [{'string' : 'string' ,
150150 'int' : 10 ,
@@ -163,7 +163,7 @@ def test_list_table(self):
163163 result = self .run_command (['call-api' , 'Service' , 'method' ],
164164 fmt = 'table' )
165165
166- self .assertEqual (result . exit_code , 0 )
166+ self .assert_no_fail (result )
167167 self .assertEqual (result .output ,
168168 """:......:......:.......:.....:........:
169169: Bool : None : float : int : string :
@@ -179,6 +179,6 @@ def test_parameters(self):
179179 result = self .run_command (['call-api' , 'Service' , 'method' ,
180180 'arg1' , '1234' ])
181181
182- self .assertEqual (result . exit_code , 0 )
182+ self .assert_no_fail (result )
183183 self .assert_called_with ('SoftLayer_Service' , 'method' ,
184184 args = ('arg1' , '1234' ))
0 commit comments