@@ -93,8 +93,9 @@ def test_python_output(self):
9393 '--id=100' ,
9494 '-f nested.property=5432' ,
9595 '--output-python' ])
96-
96+ print ( "OUTPUT: \n {}" . format ( result . exception ))
9797 self .assert_no_fail (result )
98+
9899 self .assertIsNotNone (result .output , """import SoftLayer
99100
100101client = SoftLayer.create_client_from_env()
@@ -162,14 +163,12 @@ def test_object_table(self):
162163
163164 self .assert_no_fail (result )
164165 # NOTE(kmcdonald): Order is not guaranteed
165- self .assertIn (":........:........:" , result .output )
166- self .assertIn (": name : value :" , result .output )
167- self .assertIn (": int : 10 :" , result .output )
168- self .assertIn (": None : None :" , result .output )
169- self .assertIn (": float : 1.0 :" , result .output )
170- self .assertIn (": Bool : True :" , result .output )
171- self .assertIn (": string : string :" , result .output )
172- self .assertIn (":........:........:" , result .output )
166+ self .assertIn ("│ name │ value │" , result .output )
167+ self .assertIn ("│ int │ 10 │" , result .output )
168+ self .assertIn ("│ None │ None │" , result .output )
169+ self .assertIn ("│ float │ 1.0 │" , result .output )
170+ self .assertIn ("│ Bool │ True │" , result .output )
171+ self .assertIn ("│ string │ string │" , result .output )
173172
174173 def test_object_nested (self ):
175174 mock = self .set_mock ('SoftLayer_Service' , 'method' )
@@ -210,11 +209,11 @@ def test_list_table(self):
210209
211210 self .assert_no_fail (result )
212211 self .assertEqual (result .output ,
213- """:......:......:.......:.....:........:
214- : Bool : None : float : int : string :
215- :......:......:.......:.....:........:
216- : True : None : 1.0 : 10 : string :
217- :......:......:.......:.....:........:
212+ """┌──────┬──────┬───────┬─────┬────────┐
213+ │ Bool │ None │ float │ int │ string │
214+ ├──────┼──────┼───────┼─────┼────────┤
215+ │ True │ None │ 1.0 │ 10 │ string │
216+ └──────┴──────┴───────┴─────┴────────┘
218217""" )
219218
220219 def test_parameters (self ):
0 commit comments