mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-10 04:09:58 +00:00
fix test_cli to put the root_dir.cap in the private subdir
This commit is contained in:
parent
ab4303609d
commit
32d2cc8aba
@ -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/")
|
||||
|
Loading…
x
Reference in New Issue
Block a user