Пример #1
0
def test_recipe_put():
	_cleanup()

	config = {
		"server_store": ["tiddlywebplugins.devstore", { "store_root": STORE_DIR }],
		"instance_tiddlers": {},
		"root_dir": ""
	}
	env = { "tiddlyweb.config": config }
	store = Storage(config["server_store"][1], env)

	name = "foo"
	recipe = Recipe(name)
	store.recipe_put(recipe)

	assert os.path.exists("%s/%s.recipe" % (STORE_DIR, name))