Module Expr Str ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias Import alias Expr Call AttributeLoad NameLoad attr Assign NameStore ListLoad Str Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad Num NameLoad TupleLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad If NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr orelse Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Slice Num body Expr Str Assign NameStore Call NameLoad keyword BinOpAdd Str NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Num keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword ListLoad keyword Str keyword Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd NameLoad Call NameLoad AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call NameLoad Str NameLoad Expr Call NameLoad Str NameLoad TryExcept body Expr Call NameLoad Str Expr Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call NameLoad Str ExceptHandler type NameLoad body Import alias Expr Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr Num Return Call AttributeLoad NameLoad attr Num decorator_list If CompareEq NameLoad Str body TryExcept body Import alias Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass Expr Call NameLoad
N/A N/A 
Main runners. Bootloads Sniffer class.
 __future__ print_function absolute_import optparse OptionParser sniffer.scanner Scanner sniffer.runner ScentSniffer sniffer.metadata __version__ N/A sys N/A colorama N/A N/A N/A colorama init N/A __all__ N/A run main run N/A N/A sniffer_instance wait_time clear args debug N/A None 0.5 True N/A False N/A N/A 
    Runs the auto tester loop. Internally, the runner instanciates the sniffer_cls and
    scanner class.

    ``sniffer_instance`` The class to run. Usually this is set to but a subclass of scanner.
                    Defaults to Sniffer. Sniffer class documentation for more information.
    ``wait_time``   The time, in seconds, to wait between polls. This is dependent on
                    the underlying scanner implementation. OS-specific libraries may choose
                    to ignore this parameter. Defaults to 0.5 seconds.
    ``clear``       Boolean. Set to True to clear the terminal before running the sniffer,
                    (alias, the unit tests). Defaults to True.
    ``args``        The arguments to pass to the sniffer/test runner. Defaults to ().
    ``debug``       Boolean. Sets the scanner and sniffer in debug mode, printing more internal
                    information. Defaults to False (and should usually be False).
     N/A N/A sniffer_instance None N/A N/A sniffer_instance N/A ScentSniffer N/A debug N/A N/A scanner N/A Scanner N/A sniffer_instance watch_paths scent N/A sniffer_instance scent logger N/A sys stdout N/A N/A scanner N/A Scanner N/A sniffer_instance watch_paths scent N/A sniffer_instance scent N/A N/A N/A sniffer_instance set_up N/A tuple args clear debug N/A N/A N/A sniffer_instance observe_scanner scanner N/A N/A N/A scanner loop wait_time N/A main N/A N/A sniffer_instance test_args progname args N/A None N/A N/A N/A sys argv N/A 0 N/A N/A sys argv N/A 1 N/A N/A 
    Runs the program. This is used when you want to run this program standalone.

    ``sniffer_instance`` A class (usually subclassed of Sniffer) that hooks into the
                    scanner and handles running the test framework. Defaults to
                    Sniffer instance.
    ``test_args``   This function normally extracts args from ``--test-arg ARG`` command. A
                    preset argument list can be passed. Defaults to an empty tuple.
    ``program``     Program name. Defaults to sys.argv[0].
    ``args``        Command line arguments. Defaults to sys.argv[1:]
     N/A parser N/A OptionParser version N/A %prog  __version__ N/A N/A N/A parser add_option -w --wait dest wait_time metavar TIME default 0.5 type float help Wait time, in seconds, before possibly rerunningtests. (default: %default) N/A N/A N/A parser add_option --no-clear dest clear_on_run default True action store_false help Disable the clearing of screen N/A N/A N/A parser add_option --debug dest debug default False action store_true help Enabled debugging output. (default: %default) N/A N/A N/A parser add_option -x --test-arg dest test_args default N/A action append help Arguments to pass to nose (use multiple times to pass multiple arguments.) N/A N/A options args N/A N/A parser parse_args args N/A test_args N/A test_args N/A tuple N/A options test_args N/A N/A options debug N/A N/A N/A print Options: options N/A N/A print Test Args: test_args N/A N/A N/A N/A print Starting watch... N/A N/A run sniffer_instance N/A options wait_time N/A options clear_on_run test_args N/A options debug N/A N/A N/A KeyboardInterrupt N/A N/A N/A print Good bye. N/A N/A Exception N/A N/A traceback N/A N/A N/A traceback print_exc N/A N/A N/A sys exit 1 N/A N/A N/A sys exit 0 N/A N/A N/A __name__ __main__ N/A N/A N/A N/A psyco N/A N/A N/A psyco full N/A N/A N/A ImportError N/A N/A N/A N/A main