#NEWLINE# def test_create_service_chain( self ) : #NEWLINE# #INDENT# deploy = self . driver . create = mock . Mock ( ) #NEWLINE# destroy = self . driver . delete = mock . Mock ( ) #NEWLINE# self . _create_simple_service_chain ( 1 ) #NEWLINE# self . assertEqual ( 1 , deploy . call_count ) #NEWLINE# self . assertEqual ( 0 , destroy . call_count ) #NEWLINE# deploy . reset_mock ( ) #NEWLINE# ( provider , _ , _ ) = self . _create_simple_service_chain ( 3 ) #NEWLINE# self . assertEqual ( 3 , deploy . call_count ) #NEWLINE# self . assertEqual ( 0 , destroy . call_count ) #NEWLINE# self . update_policy_target_group ( provider [ 'id' ] , provided_policy_rule_sets = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( 3 , deploy . call_count ) #NEWLINE# self . assertEqual ( 3 , destroy . call_count )