

def unique_gzip(self):
    "\n        Returns a unique string that satisifies the requirements for Django's\n        gzip compression middleware.\n        \n        "
    content = self.unique()
    while ((len(content) < 200) or (len(content) < len(self.compress(content)))):
        content *= 2
    return content

dataset/ETHPy150Open skibblenybbles/django-daydreamer/daydreamer/tests/views/behaviors/gzip/base.py TestCase.unique_gzip/original