Skip to content

Commit 0fa4dfd

Browse files
caberoscaberos
authored andcommitted
fix the error unit test
1 parent 2af5f07 commit 0fa4dfd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/CLI/modules/server_tests.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,8 +397,9 @@ def test_create_server(self, order_mock):
397397
])
398398

399399
self.assert_no_fail(result)
400-
self.assertEqual(json.loads(result.output),
401-
{'id': 98765, 'created': '2013-08-02 15:23:47'})
400+
self.assertEqual(
401+
str(result.output),
402+
'Warning: Closed soon: TEST00.pod2\n{\n "id": 98765,\n "created": "2013-08-02 15:23:47"\n}\n')
402403

403404
@mock.patch('SoftLayer.CLI.template.export_to_template')
404405
def test_create_server_with_export(self, export_mock):

0 commit comments

Comments
 (0)