def test_delete_directory_notification(self):
        """Make sure make_subdirectory sends notifications."""
        with fsync_commit():
            d = self.vgw.make_subdirectory(self.root.id, 'dir')
        self.dummy_notifier.reset()
        with fsync_commit():
            d = self.vgw.delete_node(d.id)
        self.assertEqual(self.dummy_notifier.notifications, [
            VolumeNewGeneration(self.user.id, None, d.generation,
                                self.vgw.session_id)
        ])