#NEWLINE# def test_vsa_volume_delete_vsa_with_volumes( self ) : #NEWLINE# #INDENT# ' Check volume deleton in different states. ' #NEWLINE# vols1 = self . _get_all_volumes_by_vsa ( ) #NEWLINE# for i in range ( 3 ) : #NEWLINE# #INDENT# volume_param = self . _default_volume_param ( ) #NEWLINE# volume_ref = self . volume_api . create ( self . context , ** volume_param ) #NEWLINE# #UNINDENT# vols2 = self . _get_all_volumes_by_vsa ( ) #NEWLINE# self . assertEqual ( ( len ( vols1 ) + 3 ) , len ( vols2 ) ) #NEWLINE# self . vsa_api . delete ( self . context , self . vsa_id ) #NEWLINE# vols3 = self . _get_all_volumes_by_vsa ( ) #NEWLINE# self . assertEqual ( len ( vols1 ) , len ( vols3 ) )