From: Alberto Berti Date: Sun, 22 Feb 2009 17:37:32 +0000 (-0700) Subject: Added tests for the fixed alias related command's synopsis X-Git-Tag: allmydata-tahoe-1.4.0~153 X-Git-Url: https://git.rkrishnan.org/pf/content/en/footer/somewhere?a=commitdiff_plain;h=ff6a77cc6b837197e65f97e048d5ce1ac1f50301;p=tahoe-lafs%2Ftahoe-lafs.git Added tests for the fixed alias related command's synopsis --- diff --git a/src/allmydata/test/test_cli.py b/src/allmydata/test/test_cli.py index 15f46ee9..5ef98278 100644 --- 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 = [