update tests
authorAlexander Solovyov <piranha@piranha.org.ua>
Sun, 10 Jan 2010 23:05:37 +0200
changeset 98 f215aef1d1ee
parent 97 46afc08b68ff
child 99 a77c4a82e836
update tests
tests/test.out
tests/test.py
tests/test_cmd.out
tests/test_opts.out
--- a/tests/test.out	Mon Nov 09 23:31:37 2009 +0200
+++ b/tests/test.out	Sun Jan 10 23:05:37 2010 +0200
@@ -3,13 +3,11 @@
 commands:
 
  simple  Just simple command to do nothing.
-{'test': False, 'ui': <__main__.UI object at 0x100511750>}
+['test', 'ui']
 test.py complex [-p] [--exit value] ...
-
 That's more complex command indented to do something
 
     Let's try to do that (what?!)
-
 options:
 
  -p --pass     don't run the command
@@ -18,4 +16,3 @@
  -v --verbose  enable additional output
  -q --quiet    suppress output
  -h --help     display help
-
--- a/tests/test.py	Mon Nov 09 23:31:37 2009 +0200
+++ b/tests/test.py	Sun Jan 10 23:05:37 2010 +0200
@@ -12,7 +12,7 @@
 
     I assure you! Nothing to look here. ;-)
     '''
-    ui.write(str(locals()))
+    ui.write(str(locals().keys()))
     ui.write('\n')
 
 cplx_opts = [('p', 'pass', False, 'don\'t run the command'),
--- a/tests/test_cmd.out	Mon Nov 09 23:31:37 2009 +0200
+++ b/tests/test_cmd.out	Sun Jan 10 23:05:37 2010 +0200
@@ -6,13 +6,10 @@
  initdb     Initialize database
  runserver  Run development server
 test_cmd.py runserver [OPTIONS] 
-
 Run development server
-
 options:
 
  -l --listen  ip to listen on (default: localhost)
  -p --port    port to listen on (default: 5000)
  -c --config  config file to use (default: webshops.ini)
  -h --help    display help
-
--- a/tests/test_opts.out	Mon Nov 09 23:31:37 2009 +0200
+++ b/tests/test_opts.out	Sun Jan 10 23:05:37 2010 +0200
@@ -1,9 +1,7 @@
 test_opts.py [-l HOST] DIR
-
 Command with option declaration as keyword arguments
 
     Otherwise it's the same as previous command
-
 options:
 
  -l --listen     ip to listen on (default: localhost)
@@ -11,13 +9,10 @@
  -d --daemonize  daemonize process
     --pid-file   name of file to write process ID to
  -h --help       show help
-
 test_opts.py [-l HOST] DIR
-
 Command with option declaration as keyword arguments
 
     Otherwise it's the same as previous command
-
 options:
 
  -l --listen     ip to listen on (default: localhost)
@@ -25,5 +20,4 @@
  -d --daemonize  daemonize process
     --pid-file   name of file to write process ID to
  -h --help       show help
-
 {'pid_file': '', 'daemonize': False, 'dirname': '.', 'port': 8000, 'listen': 'localhost'}