'Test normal backup deletion with notifications.'

@mock.patch('cinder.volume.utils.notify_about_backup_usage')
def test_delete_backup_with_notify(self, notify):

    vol_id = self._create_volume_db_entry(size=1)
    backup = self._create_backup_db_entry(status=fields.BackupStatus.DELETING, volume_id=vol_id)
    self.backup_mgr.delete_backup(self.ctxt, backup)
    self.assertEqual(2, notify.call_count)
