def test_tiddler_put(): _cleanup() config = { "server_store": ["tiddlywebplugins.devstore", { "store_root": STORE_DIR }], "instance_tiddlers": { "myBag": [] }, "root_dir": "" } env = { "tiddlyweb.config": config } store = Storage(config["server_store"][1], env) tiddler = Tiddler("lorem") tiddler.bag = "myBag" store.tiddler_put(tiddler) tiddler_path = os.path.join(STORE_DIR, tiddler.bag, "%s.tid" % tiddler.title) assert os.path.exists(tiddler_path)