forgotten tests file
authorAlexander Solovyov <alexander@solovyov.net>
Sun, 23 Jan 2011 18:34:31 +0100
changeset 162 e924a731e195
parent 161 876a22f3d154
child 163 a8a8ae1a3fbe
forgotten tests file
tests/selfhelp.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/selfhelp.py	Sun Jan 23 18:34:31 2011 +0100
@@ -0,0 +1,12 @@
+from opster import command
+
+@command()
+def selfhelp(assist=('', False, 'show help')):
+    '''Displays ability to show help'''
+    if assist:
+        selfhelp.help()
+    else:
+        print 'no help for you!'
+
+if __name__ == '__main__':
+    selfhelp()