def test_list_no_metadata(self):
        key = Key(self.bucket)
        name, version = 'mypkg', '1.2'
        filename = '%s-%s.tar.gz' % (name, version)
        key.key = name + '/' + filename
        key.set_contents_from_string('foobar')
        package = list(self.storage.list(Package))[0]
        self.assertEquals(package.name, name)
        self.assertEquals(package.version, version)
        self.assertEquals(package.filename, filename)
Test that list works on old keys with no metadata
dataset/ETHPy150Open mathcamp/pypicloud/tests/test_storage.py/TestS3Storage.test_list_no_metadata