mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-20 00:30:57 +00:00
Fix the option setup for the webopen command.
This commit is contained in:
parent
b54a6e811b
commit
0f6009b97e
@ -1,3 +1,4 @@
|
||||
from StringIO import StringIO
|
||||
import os.path
|
||||
from twisted.trial import unittest
|
||||
import urllib
|
||||
@ -17,7 +18,10 @@ class CreateAlias(GridTestMixin, CLITestMixin, unittest.TestCase):
|
||||
o.parseOptions(["--node-directory", self.get_clientdir(), "webopen"]
|
||||
+ list(args))
|
||||
urls = []
|
||||
rc = cli.webopen(o, urls.append)
|
||||
o.subOptions.stdout = StringIO()
|
||||
o.subOptions.stderr = StringIO()
|
||||
o.subOptions.stdin = StringIO()
|
||||
rc = cli.webopen(o.subOptions, urls.append)
|
||||
self.failUnlessReallyEqual(rc, 0)
|
||||
self.failUnlessReallyEqual(len(urls), 1)
|
||||
self.failUnlessReallyEqual(urls[0], expected_url)
|
||||
|
Loading…
x
Reference in New Issue
Block a user