def test_delete_file_notifications(self):
        """Make sure delete_file sends notifications."""
        name = 'filename'
        hash = self.factory.get_fake_hash()
        storage_key = uuid.uuid4()
        crc = 12345
        size = 100
        deflated_size = 10000
        with fsync_commit():
            f = self.vgw.make_file_with_content(
                self.root.id, name, hash, crc, size, deflated_size,
                storage_key)
        self.dummy_notifier.reset()
        with fsync_commit():
            f = self.vgw.delete_node(f.id)
        self.assertEqual(self.dummy_notifier.notifications, [
            VolumeNewGeneration(self.user.id, None, f.generation,
                                self.vgw.session_id)
        ])