projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffab400
)
Added tests for the fixed alias related command's synopsis
author
Alberto Berti
<alberto@metapensiero.it>
Sun, 22 Feb 2009 17:37:32 +0000
(10:37 -0700)
committer
Alberto Berti
<alberto@metapensiero.it>
Sun, 22 Feb 2009 17:37:32 +0000
(10:37 -0700)
src/allmydata/test/test_cli.py
patch
|
blob
|
history
diff --git
a/src/allmydata/test/test_cli.py
b/src/allmydata/test/test_cli.py
index 15f46ee911c929d58909f5b267144d6c4927ff67..5ef98278eef0870faa70612f59f1048bdf0f4dac 100644
(file)
--- a/
src/allmydata/test/test_cli.py
+++ b/
src/allmydata/test/test_cli.py
@@
-322,6
+322,14
@@
class Help(unittest.TestCase):
help = str(cli.DeepCheckOptions())
self.failUnless("deep-check [ALIAS:PATH]" in help, help)
+ def test_create_alias(self):
+ help = str(cli.CreateAliasOptions())
+ self.failUnless("create-alias ALIAS" in help, help)
+
+ def test_add_aliases(self):
+ help = str(cli.AddAliasOptions())
+ self.failUnless("add-alias ALIAS DIRCAP" in help, help)
+
class CLITestMixin:
def do_cli(self, verb, *args, **kwargs):
nodeargs = [