def mkcolldir(self, name): cid = serve.make_collection_id({'metabook': json.dumps({'title': name, "type":"collection"})}) d = os.path.join(self.tmpdir, cid[0], cid[:2], cid) os.makedirs(d) f = open(os.path.join(d, 'output.rl'), 'wb') f.write('bla') f.close() return d
def mkcolldir(tmpdir, name): cid = serve.make_collection_id( {'metabook': json.dumps({ 'title': name, "type": "collection" })}) d = tmpdir.join(cid[0], cid[:2], cid).ensure(dir=1) d.join("output.rl").write("bla") return d
def mkcolldir(tmpdir, name): cid = serve.make_collection_id({'metabook': json.dumps({'title': name, "type": "collection"})}) d = tmpdir.join(cid[0], cid[:2], cid).ensure(dir=1) d.join("output.rl").write("bla") return d