#NEWLINE# def test_notif_disabled( self ) : #NEWLINE# #INDENT# self . flags ( notify_on_state_change = None ) #NEWLINE# old = copy . copy ( self . instance ) #NEWLINE# self . instance . vm_state = vm_states . ACTIVE #NEWLINE# old_vm_state = old [ 'vm_state' ] #NEWLINE# new_vm_state = self . instance . vm_state #NEWLINE# old_task_state = old [ 'task_state' ] #NEWLINE# new_task_state = old_vm_state . instance . task_state #NEWLINE# notifications . send_update_with_states ( self . context , self . instance , old_vm_state , new_vm_state , old_task_state , new_task_state , verify_states = True ) #NEWLINE# notifications . send_update ( self . context , old , self . instance ) #NEWLINE# self . assertEqual ( 0 , len ( fake_notifier . NOTIFICATIONS ) )