Added tests for the fixed alias related command's synopsis

This commit is contained in:
Alberto Berti 2009-02-22 10:37:32 -07:00
parent ffab4002aa
commit ff6a77cc6b

View 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 = [