From: Zooko O'Whielacronx Date: Fri, 4 Jan 2008 00:48:53 +0000 (-0700) Subject: fix test_cli to put the root_dir.cap in the private subdir X-Git-Tag: allmydata-tahoe-0.7.0~37 X-Git-Url: https://git.rkrishnan.org/htmlfontify-example.html?a=commitdiff_plain;h=32d2cc8abaa15e5edb375a671acbac3eb33553a0;p=tahoe-lafs%2Ftahoe-lafs.git fix test_cli to put the root_dir.cap in the private subdir --- 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/")