File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -401,6 +401,11 @@ def test_quote_detail(self):
401401 self .assert_no_fail (result )
402402 self .assert_called_with ('SoftLayer_Billing_Order_Quote' , 'getObject' , identifier = '12345' )
403403
404+ def test_quote_save (self ):
405+ result = self .run_command (['order' , 'quote-save' , '12345' ])
406+ self .assert_no_fail (result )
407+ self .assert_called_with ('SoftLayer_Billing_Order_Quote' , 'saveQuote' , identifier = '12345' )
408+
404409 def test_quote_list (self ):
405410 result = self .run_command (['order' , 'quote-list' ])
406411 self .assert_no_fail (result )
Original file line number Diff line number Diff line change @@ -104,6 +104,13 @@ def test_get_quote_details(self):
104104 quote_fixture = quote_service .getObject (id = 1234 )
105105 self .assertEqual (quote , quote_fixture )
106106
107+ def test_save_quote (self ):
108+ saved_quote = self .ordering .save_quote (1234 )
109+ quote_service = self .ordering .client ['Billing_Order_Quote' ]
110+ quote_fixture = quote_service .getObject (id = 1234 )
111+ self .assertEqual (saved_quote , quote_fixture )
112+ self .assert_called_with ('SoftLayer_Billing_Order_Quote' , 'saveQuote' , identifier = 1234 )
113+
107114 def test_verify_quote (self ):
108115 extras = {
109116 'hardware' : [{
You can’t perform that action at this time.
0 commit comments