]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Added tests for the fixed alias related command's synopsis
authorAlberto Berti <alberto@metapensiero.it>
Sun, 22 Feb 2009 17:37:32 +0000 (10:37 -0700)
committerAlberto Berti <alberto@metapensiero.it>
Sun, 22 Feb 2009 17:37:32 +0000 (10:37 -0700)
src/allmydata/test/test_cli.py

index 15f46ee911c929d58909f5b267144d6c4927ff67..5ef98278eef0870faa70612f59f1048bdf0f4dac 100644 (file)
@@ -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 = [