def serializeCorpus(self):
        """
        This method creates a fixture for the "django-tethne_corpus" model.
        Returns
        -------
        corpus_details in JSON format which can written to a file.

        """
        corpus_details = [{
                "model": "django-tethne.corpus",
                "pk": self.corpus_id,
                "fields": {
                    "source": self.source,
                    "date_created":strftime("%Y-%m-%d %H:%M:%S", gmtime()),
                    "length" : len(self.corpus),
                }
            }]
        return corpus_details
def serializeCorpus ( self ) : corpus_details = [ { "model" : "django-tethne.corpus" , "pk" : self . corpus_id , "fields" : { "source" : self . source , "date_created" : strftime ( "%Y-%m-%d %H:%M:%S" , gmtime ( ) ) , "length" : len ( self . corpus ) , } } ] return corpus_details
This method creates a fixture for the "django-tethne_corpus" model.
        Returns
        -------
        corpus_details in JSON format which can written to a file.