#NEWLINE# def test_update_service_chain( self ) : #NEWLINE# #INDENT# deploy = self . driver . create = mock . Mock ( ) #NEWLINE# update = self . driver . update = mock . Mock ( ) #NEWLINE# destroy = self . driver . delete = mock . Mock ( ) #NEWLINE# ( provider , _ , prs ) = self . _create_simple_service_chain ( 1 ) #NEWLINE# self . assertEqual ( 1 , deploy . call_count ) #NEWLINE# self . assertEqual ( 0 , destroy . call_count ) #NEWLINE# instances = self . _list ( 'servicechain_instances' ) [ 'servicechain_instances' ] #NEWLINE# self . assertEqual ( 1 , len ( instances ) ) #NEWLINE# self . update_servicechain_instance ( instances [ 0 ] [ 'id' ] , expected_res_status = 200 ) #NEWLINE# self . assertEqual ( 1 , provider . call_count ) #NEWLINE# self . assertEqual ( 0 , destroy . call_count )