]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
fix test_cli to put the root_dir.cap in the private subdir
authorZooko O'Whielacronx <zooko@zooko.com>
Fri, 4 Jan 2008 00:48:53 +0000 (17:48 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Fri, 4 Jan 2008 00:48:53 +0000 (17:48 -0700)
src/allmydata/test/test_cli.py

index 015b81cd315958663fd3e7fd36c7f02da4aad274..ed355b4d01c5297a1c50c7764e0e3478143696cc 100644 (file)
@@ -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/")