Module Expr Str Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Return BinOpAdd AttributeLoad NameLoad attr Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body AugAssignAdd AttributeStore NameLoad attr Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body For NameStore TupleLoad Num Num body Assign NameStore Call NameLoad Assign NameStore Call NameLoad If NameLoad body Assign NameStore Call Call AttributeLoad NameLoad attr Num keyword NameLoad NameLoad orelse Assign NameStore Call NameLoad NameLoad Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assert NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq Call AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Assert NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq Call AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr BinOpAdd Num NameLoad Assert CompareEq Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Assert UnaryOpNot NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq Call AttributeLoad NameLoad attr Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Assert UnaryOpNot NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq Call AttributeLoad NameLoad attr Call NameLoad Str Assign AttributeStore NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Assert UnaryOpNot NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq Call AttributeLoad NameLoad attr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Num keyword NameLoad Assign AttributeStore NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Assert NameLoad Assert CompareEq Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assert UnaryOpNot NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq Call AttributeLoad NameLoad attr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Num keyword NameLoad Assign AttributeStore NameLoad attr Num Assert CompareEq Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Assert CompareEq Call AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Assert NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq Call AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Num Assert CompareEq Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Assert UnaryOpNot NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq Call AttributeLoad NameLoad attr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Num keyword NameLoad Assign AttributeStore NameLoad attr Num Assert CompareEq Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Assert UnaryOpNot NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq Call AttributeLoad NameLoad attr Call NameLoad Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assert NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq Call AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Assert NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq Call AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Num Assert CompareEq Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Assert UnaryOpNot NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq Call AttributeLoad NameLoad attr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Num keyword NameLoad keyword NameLoad Assign AttributeStore NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Assert NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq Call AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Assert NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq Call AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Assert NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Num keyword NameLoad keyword NameLoad Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Assert NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq Call AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr For AttributeStore NameLoad attr TupleLoad Num Num Num Num body Assign NameStore Call AttributeLoad NameLoad attr Assert UnaryOpNot NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq Call AttributeLoad NameLoad attr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Num keyword NameLoad keyword NameLoad Assign AttributeStore NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Assert NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Assert CompareEq Call AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Num Assert CompareEq Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Assert CompareEq Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Assert NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq Call AttributeLoad NameLoad attr Num decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assert CompareEq Call AttributeLoad NameLoad attr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Num NameLoad Assert CompareEq Call AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Num Assert CompareEq Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Num Assert CompareEq Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq Call AttributeLoad NameLoad attr Call NameLoad Str Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Num NameLoad keyword NameLoad Assert CompareEq Call AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Num Assert CompareEq Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Num Assert CompareEq Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq Call AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Num Assert CompareEq Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq Call AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Num Assert CompareEq Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad keyword NameLoad FunctionDef arguments args defaults body AugAssignAdd AttributeStore NameLoad attr Num decorator_list Expr Call AttributeLoad NameLoad attr Num NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Num NameLoad keyword NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Num NameLoad keyword NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Num NameLoad keyword NameLoad Assign NameStore Num While Num body AugAssignAdd AttributeStore NameLoad attr Call AttributeLoad NameLoad attr If CompareGtE AttributeLoad NameLoad attr Num body Break AugAssignAdd NameStore Num Expr Call AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq NameLoad BinOpSub BinOpAdd BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Num NameLoad keyword NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Num NameLoad keyword NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Num NameLoad keyword NameLoad For AttributeStore NameLoad attr Call NameLoad Num body Expr Call AttributeLoad NameLoad attr If CompareEq AttributeLoad NameLoad attr Num body FunctionDef arguments args defaults body Assert CompareEq AttributeLoad NameLoad attr Num decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad NameLoad attr Num NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad Assign NameStore ListLoad Num FunctionDef arguments args NameParam defaults body Assert CompareEq NameLoad Str AugAssignAdd SubscriptStore NameLoad Index Num Num Expr Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr NameLoad Assert CompareEq Call AttributeLoad NameLoad attr NameLoad Str Num Expr Call AttributeLoad NameLoad attr Assert CompareEq SubscriptLoad NameLoad Index Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr TryFinally body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr TryFinally body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr TryFinally body Assign NameStore Call NameLoad Assign NameStore ListLoad Num Assign NameStore ListLoad Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assert CompareEq NameLoad BinOpFloorDiv NameLoad NameLoad Assert CompareLt NameLoad BinOpDiv NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr FunctionDef arguments args defaults body Assert CompareEq Call AttributeLoad NameLoad attr NameLoad Str Num AugAssignAdd SubscriptStore NameLoad Index Num Num decorator_list Call AttributeLoad NameLoad attr NameLoad keyword NameLoad FunctionDef arguments args NameParam defaults body Assert CompareEq NameLoad Str AugAssignAdd SubscriptStore NameLoad Index Num Num decorator_list Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assert CompareEq Call NameLoad BinOpSub Call AttributeLoad NameLoad attr NameLoad Num NameLoad Assert CompareEq SubscriptLoad NameLoad Index Num NameLoad NameLoad Assert CompareEq SubscriptLoad NameLoad Index Num NameLoad NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr TryFinally body Assign NameStore Call NameLoad Assign NameStore ListLoad Str Str Str Str Str Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args defaults body If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assert CompareEq Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Num keyword NameLoad Assign NameStore ListLoad Expr Call Call AttributeLoad NameLoad attr NameLoad keyword Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assert CompareEq NameLoad ListLoad Str Str Str Str finalbody Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr TryFinally body Assign NameStore Call NameLoad Assign NameStore ListLoad Str Str Str Str Str Assign NameStore SubscriptLoad NameLoad Slice Num FunctionDef arguments args defaults body If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Num keyword NameLoad Assign NameStore ListLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad Dict Str Str Str Str Num Num Num Num Index SubscriptLoad NameLoad Index Num Assert CompareEq Call NameLoad BinOpSub Call AttributeLoad NameLoad attr NameLoad Num NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assert CompareEq NameLoad ListLoad Str Str Str Str finalbody Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr TryFinally body Assign NameStore Str Assert CompareEq Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad NameLoad Assign NameStore Call NameLoad Assign NameStore ListLoad Num FunctionDef arguments args NameParam NameParam defaults body If CompareEq SubscriptLoad NameLoad Index Num Num body Assert CompareEq NameLoad Str orelse If CompareEq SubscriptLoad NameLoad Index Num Num body Assert CompareEq NameLoad Str Expr Call NameLoad NameLoad orelse If CompareEq SubscriptLoad NameLoad Index Num Num body Assert CompareEq NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str orelse If CompareEq SubscriptLoad NameLoad Index Num Num body Assert CompareEq NameLoad Str orelse If CompareEq SubscriptLoad NameLoad Index Num Num body Assert CompareEq NameLoad Str Expr Call AttributeLoad NameLoad attr orelse Assert NameLoad AugAssignAdd SubscriptStore NameLoad Index Num Num decorator_list Call AttributeLoad NameLoad attr NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Assert CompareEq SubscriptLoad NameLoad Index Num Num finalbody Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr TryFinally body Assign NameStore Call NameLoad Assign NameStore ListLoad Str Str Str Str Assign NameStore ListLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Assert CompareEq AttributeLoad NameLoad attr SubscriptLoad Dict Num Num Num Num Num Num Num Num Index Call NameLoad NameLoad If CompareEq Call NameLoad NameLoad Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assert CompareEq Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad NameLoad decorator_list For TupleStore NameStore NameStore Call NameLoad NameLoad body Expr Call NameLoad SubscriptLoad Str Slice NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad Call NameLoad BinOpAdd Call NameLoad NameLoad Num Expr Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Assert CompareEq NameLoad NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A 

    Tests for the event loop.

    See http://exyr.org/2011/event-loop/
    
    Author: Simon Sapin
    License: BSD

 N/A unittest N/A os N/A time N/A logging decimal Decimal event_loop Timer TimerManager EventLoop packet_reader PacketReader TestingTimeFunction N/A object N/A N/A 
    An instance can be used as a dummy time function for tests.
    Tests can then set the "time" independently of real time.
     __init__ N/A N/A self N/A N/A N/A N/A self time 0 N/A __call__ N/A N/A self N/A N/A N/A N/A N/A self time 42.25 N/A N/A MockCallback N/A object N/A N/A 
    A callback object that tells you how many times it was called.
     __init__ N/A N/A self N/A N/A N/A N/A self nb_calls 0 N/A __call__ N/A N/A self N/A N/A N/A N/A self nb_calls 1 N/A N/A FileLike N/A object N/A N/A 
    A "file-like" object with just `fileno()`
     __init__ N/A N/A self fd N/A N/A N/A N/A self fd fd N/A fileno N/A N/A self N/A N/A N/A N/A self fd N/A N/A TestTimer N/A N/A unittest TestCase N/A test_non_repeating N/A N/A self N/A N/A N/A N/A N/A self _non_repeating decorate False N/A test_decorate N/A N/A self N/A N/A N/A N/A N/A self _non_repeating decorate False N/A _non_repeating N/A N/A self decorate N/A N/A N/A delay N/A 0 1 N/A N/A time N/A TestingTimeFunction N/A callback N/A MockCallback N/A decorate N/A N/A timer N/A N/A N/A Timer decorate 10 _time_function time callback N/A N/A timer N/A Timer callback 10 _time_function time N/A still_alive N/A N/A timer run N/A still_alive N/A N/A N/A callback nb_calls 0 N/A N/A N/A N/A timer sleep_time 10 N/A N/A time time 9 N/A still_alive N/A N/A timer run N/A still_alive N/A N/A N/A callback nb_calls 0 N/A N/A N/A N/A timer sleep_time 1 N/A N/A time time N/A 10 delay N/A N/A N/A N/A timer sleep_time 0 N/A still_alive N/A N/A timer run N/A N/A still_alive N/A N/A N/A callback nb_calls 1 N/A N/A N/A N/A timer sleep_time N/A Decimal inf N/A still_alive N/A N/A timer run N/A N/A still_alive N/A N/A N/A callback nb_calls 1 N/A N/A N/A N/A timer sleep_time N/A Decimal inf N/A N/A time time 15 N/A still_alive N/A N/A timer run N/A N/A still_alive N/A N/A N/A callback nb_calls 1 N/A N/A N/A N/A timer sleep_time N/A Decimal inf N/A test_cancel N/A N/A self N/A N/A N/A time N/A TestingTimeFunction N/A callback N/A MockCallback N/A timer N/A Timer callback 10 _time_function time N/A N/A time time 9 N/A still_alive N/A N/A timer run N/A still_alive N/A N/A N/A N/A timer sleep_time 1 N/A N/A N/A timer cancel N/A still_alive N/A N/A timer run N/A N/A still_alive N/A N/A N/A callback nb_calls 0 N/A N/A N/A N/A timer sleep_time N/A Decimal inf N/A test_reset_early N/A N/A self N/A N/A N/A time N/A TestingTimeFunction N/A callback N/A MockCallback N/A timer N/A Timer callback 10 _time_function time N/A N/A time time 7 N/A N/A N/A N/A timer sleep_time 3 N/A N/A N/A timer reset N/A N/A N/A N/A timer sleep_time 10 N/A N/A time time 16 N/A still_alive N/A N/A timer run N/A still_alive N/A N/A N/A callback nb_calls 0 N/A N/A N/A N/A timer sleep_time 1 N/A N/A time time 17 N/A N/A N/A N/A timer sleep_time 0 N/A still_alive N/A N/A timer run N/A N/A still_alive N/A N/A N/A callback nb_calls 1 N/A N/A N/A N/A timer sleep_time N/A Decimal inf N/A test_reset_late N/A N/A self N/A N/A N/A time N/A TestingTimeFunction N/A callback N/A MockCallback N/A timer N/A Timer callback 10 _time_function time N/A N/A time time 13 N/A N/A N/A N/A timer sleep_time 0 N/A still_alive N/A N/A timer run N/A N/A still_alive N/A N/A N/A callback nb_calls 1 N/A N/A N/A N/A timer sleep_time N/A Decimal inf N/A N/A N/A timer reset N/A still_alive N/A N/A timer run N/A still_alive N/A N/A N/A callback nb_calls 1 N/A N/A N/A N/A timer sleep_time 10 N/A N/A time time 21 N/A still_alive N/A N/A timer run N/A still_alive N/A N/A N/A callback nb_calls 1 N/A N/A N/A N/A timer sleep_time 2 N/A N/A time time 30 N/A N/A N/A N/A timer sleep_time 0 N/A still_alive N/A N/A timer run N/A N/A still_alive N/A N/A N/A callback nb_calls 2 N/A N/A N/A N/A timer sleep_time N/A Decimal inf N/A test_repeating N/A N/A self N/A N/A N/A time N/A TestingTimeFunction N/A callback N/A MockCallback N/A timer N/A Timer callback 10 repeat True _time_function time N/A N/A time time 7 N/A still_alive N/A N/A timer run N/A still_alive N/A N/A N/A callback nb_calls 0 N/A N/A N/A N/A timer sleep_time 3 N/A N/A time time 34 N/A still_alive N/A N/A timer run N/A still_alive N/A N/A N/A callback nb_calls 1 N/A N/A N/A N/A timer sleep_time 6 N/A N/A time time 40 N/A still_alive N/A N/A timer run N/A still_alive N/A N/A N/A callback nb_calls 2 N/A N/A N/A N/A timer sleep_time 10 N/A test_cancel_repeating N/A N/A self N/A N/A N/A time N/A TestingTimeFunction N/A callback N/A MockCallback N/A timer N/A Timer callback 10 repeat True _time_function time N/A N/A time time 10 N/A N/A N/A timer run N/A N/A time time 34 N/A still_alive N/A N/A timer run N/A still_alive N/A N/A N/A callback nb_calls 2 N/A N/A N/A N/A timer sleep_time 6 N/A N/A time time 40 N/A N/A N/A timer cancel N/A N/A time time N/A 40 43 60 138 N/A N/A still_alive N/A N/A timer run N/A N/A still_alive N/A N/A N/A callback nb_calls 2 N/A N/A N/A N/A timer sleep_time N/A Decimal inf N/A test_reset_repeating N/A N/A self N/A N/A N/A time N/A TestingTimeFunction N/A callback N/A MockCallback N/A timer N/A Timer callback 10 repeat True _time_function time N/A N/A time time 12 N/A still_alive N/A N/A timer run N/A still_alive N/A N/A N/A callback nb_calls 1 N/A N/A N/A N/A timer sleep_time 8 N/A N/A N/A timer reset N/A N/A N/A N/A timer sleep_time 10 N/A N/A time time 34 N/A N/A N/A N/A timer sleep_time 0 N/A N/A N/A timer reset N/A N/A N/A N/A timer sleep_time 10 N/A still_alive N/A N/A timer run N/A still_alive N/A N/A N/A callback nb_calls 1 N/A N/A N/A N/A timer sleep_time 10 N/A N/A TestTimerManager N/A N/A unittest TestCase N/A test_empty_timer_list N/A N/A self N/A N/A N/A manager N/A TimerManager N/A N/A N/A N/A manager sleep_time N/A Decimal inf N/A test_invalid_timeouts N/A N/A self N/A N/A N/A manager N/A TimerManager N/A N/A N/A self assertRaises AssertionError N/A manager add_timer 0 None N/A N/A N/A self assertRaises AssertionError N/A manager add_timer -1 None N/A test_single_timer N/A N/A self N/A N/A N/A time N/A TestingTimeFunction N/A manager N/A TimerManager _time_function time N/A callback N/A MockCallback N/A N/A N/A manager add_timer 30 callback N/A N/A N/A N/A manager sleep_time 30 N/A N/A N/A callback nb_calls 0 N/A N/A N/A manager run N/A N/A N/A callback nb_calls 0 N/A N/A time time 22 N/A N/A N/A N/A manager sleep_time 8 N/A N/A N/A manager run N/A N/A N/A callback nb_calls 0 N/A N/A time time 30 N/A N/A N/A N/A manager sleep_time 0 N/A N/A N/A manager run N/A N/A N/A callback nb_calls 1 N/A N/A N/A N/A manager sleep_time N/A Decimal inf N/A N/A time time 100 N/A N/A N/A manager run N/A N/A N/A callback nb_calls 1 N/A test_single_repeating_timer N/A N/A self N/A N/A N/A time N/A TestingTimeFunction N/A manager N/A TimerManager _time_function time N/A callback N/A MockCallback N/A N/A N/A manager add_timer 30 callback repeat True N/A N/A N/A N/A manager sleep_time 30 N/A N/A N/A callback nb_calls 0 N/A N/A N/A manager run N/A N/A N/A callback nb_calls 0 N/A N/A time time 22 N/A N/A N/A N/A manager sleep_time 8 N/A N/A N/A manager run N/A N/A N/A callback nb_calls 0 N/A N/A time time 30 N/A N/A N/A N/A manager sleep_time 0 N/A N/A N/A manager run N/A N/A N/A callback nb_calls 1 N/A N/A N/A N/A manager sleep_time 30 N/A N/A time time 71 N/A N/A N/A N/A manager sleep_time 0 N/A N/A N/A manager run N/A N/A N/A callback nb_calls 2 N/A N/A N/A N/A manager sleep_time 19 N/A N/A time time 200 N/A N/A N/A N/A manager sleep_time 0 N/A N/A N/A manager run N/A N/A N/A callback nb_calls 3 N/A N/A N/A N/A manager sleep_time 10 N/A test_long_callback N/A N/A self N/A N/A N/A time N/A TestingTimeFunction N/A manager N/A TimerManager _time_function time loose_time N/A N/A N/A N/A N/A N/A time time 11 N/A N/A N/A N/A manager add_timer 2 loose_time repeat True N/A N/A N/A manager run N/A N/A N/A time time 0 N/A N/A time time 2 N/A N/A N/A manager run N/A N/A N/A time time 13 N/A N/A N/A N/A manager sleep_time 0 N/A test_many N/A N/A self N/A N/A N/A time N/A TestingTimeFunction N/A manager N/A TimerManager _time_function time N/A c5 N/A MockCallback N/A N/A N/A manager add_timer 5 c5 repeat True N/A c7 N/A MockCallback N/A N/A N/A manager add_timer 7 c7 repeat True N/A c13 N/A MockCallback N/A N/A N/A manager add_timer 13 c13 repeat True N/A nb_sleeps 0 N/A 1 N/A N/A N/A time time N/A N/A manager sleep_time N/A N/A N/A time time 100 N/A N/A N/A nb_sleeps 1 N/A N/A N/A manager run N/A N/A N/A c5 nb_calls 19 N/A N/A N/A c7 nb_calls 14 N/A N/A N/A c13 nb_calls 7 N/A N/A nb_sleeps N/A N/A N/A N/A c5 nb_calls N/A c7 nb_calls N/A c13 nb_calls 4 N/A test_contsant_sleep N/A N/A self N/A N/A N/A time N/A TestingTimeFunction N/A manager N/A TimerManager _time_function time N/A c5 N/A MockCallback N/A N/A N/A manager add_timer 5 c5 repeat True N/A c7 N/A MockCallback N/A N/A N/A manager add_timer 7 c7 repeat True N/A c13 N/A MockCallback N/A N/A N/A manager add_timer 13 c13 repeat True N/A N/A time time N/A xrange 100 N/A N/A N/A N/A manager run N/A N/A N/A time time 42 N/A check_time N/A N/A N/A N/A N/A N/A N/A time time 48 N/A N/A one_shot N/A MockCallback N/A N/A N/A manager add_timer 6 check_time N/A N/A N/A manager add_timer 6 one_shot N/A N/A N/A c5 nb_calls 19 N/A N/A N/A c7 nb_calls 14 N/A N/A N/A c13 nb_calls 7 N/A N/A N/A one_shot nb_calls 1 N/A N/A TestEventLoop N/A N/A unittest TestCase N/A _simple N/A N/A self reader writer N/A N/A N/A loop N/A EventLoop N/A nb_reads N/A 0 incoming N/A N/A data N/A N/A N/A N/A data foo N/A N/A nb_reads N/A 0 1 N/A N/A N/A loop stop N/A N/A N/A loop block_reader reader N/A N/A N/A N/A os write writer foo 3 N/A N/A N/A loop run N/A N/A N/A nb_reads N/A 0 1 N/A test_simple_pipe N/A N/A self N/A N/A N/A N/A reader writer N/A N/A os pipe N/A N/A N/A N/A N/A self _simple reader writer N/A N/A N/A N/A os close reader N/A N/A N/A os close writer N/A test_filelike N/A N/A self N/A N/A N/A N/A reader writer N/A N/A os pipe N/A N/A N/A N/A N/A self _simple N/A FileLike reader writer N/A N/A N/A N/A os close reader N/A N/A N/A os close writer N/A test_pipe N/A N/A self N/A N/A N/A N/A reader writer N/A N/A os pipe N/A N/A N/A loop N/A EventLoop N/A nb_reads N/A 0 N/A nb_writes N/A 0 N/A duration 0.1 N/A interval 0.0095 N/A expected_nb 10 N/A N/A expected_nb N/A duration interval N/A N/A expected_nb N/A duration interval N/A start N/A N/A time time N/A N/A N/A N/A loop add_timer duration N/A loop stop write_something N/A N/A N/A N/A N/A N/A N/A N/A os write writer foo 3 N/A N/A nb_writes N/A 0 1 N/A N/A N/A loop add_timer interval repeat True incoming N/A N/A data N/A N/A N/A N/A data foo N/A N/A nb_reads N/A 0 1 N/A N/A N/A loop block_reader reader N/A N/A N/A loop run N/A N/A N/A round N/A N/A N/A time time start 2 duration N/A N/A N/A nb_writes N/A 0 expected_nb nb_writes N/A N/A N/A nb_reads N/A 0 expected_nb nb_reads N/A N/A N/A N/A os close reader N/A N/A N/A os close writer N/A N/A TestLineReader N/A N/A unittest TestCase N/A test_line_reader N/A N/A self N/A N/A N/A N/A reader writer N/A N/A os pipe N/A N/A N/A loop N/A EventLoop N/A data N/A Lorem ipsum
 dolor
sit
amet,  consectetur  adipiscing  elit.
Aliquam magna dolor,  N/A data N/A data N/A -1 N/A start N/A N/A time time slow_write N/A N/A N/A N/A N/A data N/A N/A d N/A N/A data pop N/A N/A N/A N/A os write writer d N/A len d N/A N/A N/A N/A loop stop N/A N/A N/A loop add_timer 0.01 repeat True N/A lines N/A N/A N/A N/A N/A loop line_reader reader max_block_size 5 N/A lines append N/A N/A N/A loop run N/A N/A lines N/A Lorem ipsum
 dolor
 sit
 amet, consectetur adipiscing elit.
 N/A N/A N/A N/A os close reader N/A N/A N/A os close writer N/A test_timing N/A N/A self N/A N/A N/A N/A reader writer N/A N/A os pipe N/A N/A N/A loop N/A EventLoop N/A data N/A Lorem ipsum
 dolor
sit
amet,  consectetur  adipiscing  elit.
Aliquam magna dolor,  N/A data N/A data N/A -1 slow_write N/A N/A N/A N/A N/A data N/A N/A N/A N/A os write writer N/A N/A data pop N/A N/A N/A N/A loop stop N/A N/A N/A loop add_timer 0.01 repeat True N/A lines N/A new_line N/A N/A line N/A N/A N/A N/A N/A lines append line N/A expected_time N/A N/A L d s a 0.01 0.02 0.02 0.05 N/A N/A line N/A 0 N/A N/A N/A round N/A N/A N/A time time start 2 expected_time N/A N/A N/A loop line_reader reader N/A N/A N/A time sleep 0.02 N/A N/A N/A slow_write reset N/A start N/A N/A time time N/A N/A N/A loop run N/A N/A lines N/A Lorem ipsum
 dolor
 sit
 amet, consectetur adipiscing elit.
 N/A N/A N/A N/A os close reader N/A N/A N/A os close writer N/A N/A TestPushBack N/A N/A unittest TestCase N/A test_push_back N/A N/A self N/A N/A N/A N/A reader writer N/A N/A os pipe N/A N/A N/A data Lorem ipsum dolor sit. N/A N/A N/A N/A os write writer data N/A len data N/A loop N/A EventLoop N/A state N/A 1 new_block N/A N/A data push_back N/A N/A N/A N/A N/A state N/A 0 1 N/A N/A N/A data Lorem N/A N/A N/A N/A state N/A 0 2 N/A N/A N/A data  ipsu N/A N/A push_back data N/A N/A N/A N/A state N/A 0 3 N/A N/A N/A data  ipsum dol N/A N/A push_back d N/A N/A push_back ol N/A N/A N/A N/A state N/A 0 4 N/A N/A N/A data dolor si N/A N/A N/A N/A state N/A 0 5 N/A N/A N/A data t. N/A N/A N/A loop stop N/A N/A False N/A N/A state N/A 0 1 N/A N/A N/A loop push_back_reader reader max_block_size 5 N/A N/A N/A loop run N/A N/A N/A state N/A 0 6 N/A N/A N/A N/A os close reader N/A N/A N/A os close writer N/A N/A TestPacketReader N/A N/A unittest TestCase N/A test_packets N/A N/A self N/A N/A N/A N/A reader writer N/A N/A os pipe N/A N/A N/A loop N/A EventLoop N/A original_packets N/A foo Lorem ipsum dolor sit amet. 42 N/A packets N/A callback N/A N/A packet N/A N/A N/A N/A N/A packets append packet N/A N/A N/A packet_reader dropped_bytes N/A N/A 1 2 3 4 0 1 3 6 N/A N/A len packets N/A N/A N/A len packets N/A len original_packets N/A N/A N/A N/A loop stop N/A write N/A N/A data N/A N/A N/A N/A N/A N/A os write writer data N/A len data N/A N/A N/A i packet N/A enumerate original_packets N/A N/A N/A write N/A blah N/A i N/A N/A write N/A PacketReader PACKET_DELIMITER N/A N/A write N/A chr N/A N/A len packet 1 N/A N/A write packet N/A packet_reader N/A PacketReader loop reader callback max_block_size 3 N/A N/A N/A loop run N/A N/A packets original_packets N/A N/A N/A N/A os close reader N/A N/A N/A os close writer N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main