Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Call the function as a console script.  Command line arguments
are parsed, preprocessors are called, then the function is
called.  If a 'debug' attribute is set by the command line
arguments, and it is True, any exception raised by the
underlying function will be reraised; otherwise, the return
value will be either the return value of the function or the
text contents of the exception.

src/t/u/turnstile-HEAD/tests/unit/test_tools.py   turnstile(Download)
        sa._postprocess = [mock.Mock(return_value='postprocessed')]
 
        result = sa.console()
 
        self.assertEqual(result, 'postprocessed')
        ]
 
        result = sa.console()
 
        self.assertEqual(result, 'badness')