def test_upload_prepend_hash(self):
        self.storage.prepend_hash = True
        package = make_package()
        data = StringIO()
        self.storage.upload(package, data)
        key = list(self.bucket.list())[0]

        pattern = r'^[0-9a-f]{4}/%s/%s$' % (re.escape(package.name),
                                            re.escape(package.filename))
        match = re.match(pattern, key.key)
        self.assertIsNotNone(match)
Rendering ~~strikethrough~~ text.
dataset/ETHPy150Open mathcamp/pypicloud/tests/test_storage.py/TestS3Storage.test_upload_prepend_hash--crossover with--dataset/ETHPy150Open neuroo/equip/examples/sample-test-program/test_module/mistune.py/Renderer.strikethrough