docstr: Make sure TextCorpus can be serialized to disk. 
docstr_tok: ["Make","sure","TextCorpus","can","be","serialized","to","disk","."]
code: def test_textcorpus(self):
      """Make sure TextCorpus can be serialized to disk."""
      # construct corpus from file
      miislita = CorpusMiislita(datapath("head500.noblanks.cor.bz2"))
  
      # make sure serializing works
      ftmp = get_tmpfile("test_textcorpus.mm")
      corpora.MmCorpus.save_corpus(ftmp, miislita)
      self.assertTrue(os.path.exists(ftmp))
  
      # make sure deserializing gives the same result
      miislita2 = corpora.MmCorpus(ftmp)
      self.assertEqual(list(miislita), list(miislita2))
  
file_path: gensim/gensim/test/test_miislita.py
imports: from __future__ import division
  from __future__ import with_statement
  import logging
  import os
  import unittest
  from gensim import utils, corpora, models, similarities
  from gensim.test.utils import datapath, get_tmpfile
label_desc: Use image node_id 1 for calling the TestMiislita obj's underlying member method code with example usage: obj.test_textcorpus() without return types