From ff6a77cc6b837197e65f97e048d5ce1ac1f50301 Mon Sep 17 00:00:00 2001
From: Alberto Berti <alberto@metapensiero.it>
Date: Sun, 22 Feb 2009 10:37:32 -0700
Subject: [PATCH] Added tests for the fixed alias related command's synopsis

---
 src/allmydata/test/test_cli.py | 8 ++++++++
 1 file changed, 8 insertions(+)

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