def test_list(self):
        package = make_package()
        path = self.storage.get_path(package)
        os.makedirs(os.path.dirname(path))
        with open(path, 'w') as ofile:
            ofile.write('foobar')

        pkg = list(self.storage.list(Package))[0]
        self.assertEquals(pkg.name, package.name)
        self.assertEquals(pkg.version, package.version)
        self.assertEquals(pkg.filename, package.filename)
Can iterate over uploaded packages
dataset/ETHPy150Open mathcamp/pypicloud/tests/test_storage.py/TestFileStorage.test_list