Added tests for set
authorAaron Bentley <abentley@panoramicfeedback.com>
Thu, 24 Mar 2005 16:47:09 +0000 (16:47 +0000)
committerAaron Bentley <abentley@panoramicfeedback.com>
Thu, 24 Mar 2005 16:47:09 +0000 (16:47 +0000)
becommands/set.py

index 875ca86140ae91c5c5936b8d7e1d62adf89965db..a99fc199637f2a989d8e86b6bf14002177f937ef 100644 (file)
@@ -1,6 +1,21 @@
 """Change tree settings"""
 from libbe import cmdutil 
 def execute(args):
+    """
+    >>> from libbe import tests
+    >>> import os
+    >>> dir = tests.simple_bug_dir()
+    >>> os.chdir(dir.dir)
+    >>> execute(("a",))
+    None
+    >>> execute(("a", "tomorrow"))
+    >>> execute(("a",))
+    tomorrow
+    >>> execute(("a", "none"))
+    >>> execute(("a",))
+    None
+    >>> tests.clean_up()
+    """
     if len(args) > 2:
         raise cmdutil.UserError("Too many arguments.")
     tree = cmdutil.bug_tree()