def _get_upload_name(self, filename):
        import hashlib
        import random
        while True:
            hasher = hashlib.md5()
            hasher.update(str(random.random()))
            filepath = u"infrastructure/" + \
                hasher.hexdigest() + u"__" + filename
            fullpath = settings.MEDIA_ROOT + filepath
            if not default_storage.exists(fullpath):
                return filepath
Test that copying of textplugins replaces references to copied plugins
dataset/ETHPy150Open treeio/treeio/treeio/infrastructure/forms.py/ItemForm._get_upload_name--crossover with--dataset/ETHPy150Open divio/django-cms/cms/tests/test_plugins.py/PluginsTestCase.test_copy_textplugin