def test_make_file_with_magic_content(self):
        """Make sure make_file with magic content sends a notification."""
        cb = self.factory.make_content_blob(
            content='FakeContent', magic_hash=b'magic')
        with fsync_commit():
            f = self.vgw.make_file(self.root.id, 'filename', hash=cb.hash,
                                   magic_hash='magic')
        self.assertEqual(self.dummy_notifier.notifications, [
            VolumeNewGeneration(self.user.id, None, f.generation,
                                self.vgw.session_id)
        ])