Skip to content

Commit d7b66fe

Browse files
Albert Camachoacamacho82
authored andcommitted
Updating the unittests for the CLI module, I added support for "orderContainers" parameter
1 parent a14537e commit d7b66fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/CLI/modules/order_tests.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def test_verify_hourly(self):
133133
self.assert_called_with('SoftLayer_Product_Order', 'verifyOrder')
134134
expected_results = []
135135

136-
for price in order['prices']:
136+
for price in order['orderContainers'][0]['prices']:
137137
expected_results.append({'keyName': price['item']['keyName'],
138138
'description': price['item']['description'],
139139
'cost': price['hourlyRecurringFee']})
@@ -160,7 +160,7 @@ def test_verify_monthly(self):
160160
self.assert_called_with('SoftLayer_Product_Order', 'verifyOrder')
161161
expected_results = []
162162

163-
for price in order['prices']:
163+
for price in order['orderContainers'][0]['prices']:
164164
expected_results.append({'keyName': price['item']['keyName'],
165165
'description': price['item']['description'],
166166
'cost': price['recurringFee']})
@@ -222,4 +222,4 @@ def _get_verified_order_return(self):
222222
'recurringFee': '120'}
223223
price2 = {'item': item2, 'hourlyRecurringFee': '0.05',
224224
'recurringFee': '150'}
225-
return {'prices': [price1, price2]}
225+
return {'orderContainers': [{'prices': [price1, price2]}]}

0 commit comments

Comments
 (0)