From 32d2cc8abaa15e5edb375a671acbac3eb33553a0 Mon Sep 17 00:00:00 2001 From: Zooko O'Whielacronx Date: Thu, 3 Jan 2008 17:48:53 -0700 Subject: [PATCH] fix test_cli to put the root_dir.cap in the private subdir --- src/allmydata/test/test_cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/allmydata/test/test_cli.py b/src/allmydata/test/test_cli.py index 015b81cd..ed355b4d 100644 --- a/src/allmydata/test/test_cli.py +++ b/src/allmydata/test/test_cli.py @@ -15,11 +15,12 @@ class CLI(unittest.TestCase): def test_options(self): fileutil.rm_dir("cli/test_options") fileutil.make_dirs("cli/test_options") + fileutil.make_dirs("cli/test_options/private") open("cli/test_options/node.url","w").write("http://localhost:8080/\n") filenode_uri = uri.WriteableSSKFileURI(writekey="\x00"*16, fingerprint="\x00"*32) private_uri = uri.NewDirectoryURI(filenode_uri).to_string() - open("cli/test_options/root_dir.cap", "w").write(private_uri + "\n") + open("cli/test_options/private/root_dir.cap", "w").write(private_uri + "\n") o = cli.ListOptions() o.parseOptions(["--node-directory", "cli/test_options"]) self.failUnlessEqual(o['node-url'], "http://localhost:8080/") -- 2.45.2