Module ImportFrom alias alias alias Assign NameStore Str TryExcept body Import alias identifier handlers ExceptHandler type NameLoad body Import alias ImportFrom alias ClassDef bases body Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases body Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Num Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Delete NameDel Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore ListLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr Str decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A __future__ unicode_literals print_function division N/A __author__ mozman <mozman@gmx.at> N/A N/A N/A unittest2 unittest N/A N/A N/A ImportError N/A N/A unittest ezodf.observer Observer Listener N/A N/A N/A msg fail __init__ N/A N/A self xmlnode N/A None N/A N/A N/A self xmlnode xmlnode N/A on_save_handler N/A N/A self msg N/A N/A N/A N/A self msg ok N/A get_xmlroot N/A N/A self N/A N/A N/A N/A self xmlnode N/A N/A ListenerWithoutGetXMLRootMethod N/A N/A N/A msg fail on_save_handler N/A N/A self msg N/A N/A N/A N/A self msg ok N/A N/A TestObserver N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self observer N/A Observer N/A test_count_listener N/A N/A self N/A N/A N/A N/A N/A self assertEqual 0 N/A N/A N/A self observer _count_listeners test N/A test_can_subscribe_with_no_get_root N/A N/A self N/A N/A N/A listerner N/A ListenerWithoutGetXMLRootMethod N/A N/A N/A N/A self observer subscribe save listerner N/A N/A N/A self assertTrue N/A N/A N/A self observer _has_listener save N/A test_multiple_listeners N/A N/A self N/A N/A N/A L1 N/A Listener N/A L2 N/A Listener N/A N/A N/A N/A self observer subscribe save L1 N/A N/A N/A N/A self observer subscribe save L2 N/A N/A N/A self assertEqual N/A N/A N/A self observer _count_listeners save 2 N/A test_subscribe_event N/A N/A self N/A N/A N/A listener N/A Listener N/A N/A N/A N/A self observer subscribe save listener N/A N/A N/A self assertTrue N/A N/A N/A self observer _has_listener save N/A test_subscribe_without_event_handler N/A N/A self N/A N/A N/A listener N/A Listener N/A N/A N/A self assertRaises AttributeError N/A N/A N/A N/A N/A self observer subscribe open listener N/A test_unsubscribe_existing_event N/A N/A self N/A N/A N/A listener N/A Listener N/A N/A N/A N/A self observer subscribe save listener N/A N/A N/A N/A self observer unsubscribe save listener N/A N/A N/A self assertFalse N/A N/A N/A self observer _has_listener save N/A test_unsubscribe_not_existing_event N/A N/A self N/A N/A N/A listener N/A Listener N/A N/A N/A self assertRaises KeyError N/A N/A N/A N/A N/A self observer unsubscribe save listener N/A test_unsubscribe_not_existing_listener N/A N/A self N/A N/A N/A listener N/A Listener N/A N/A N/A N/A self observer subscribe save listener N/A N/A N/A self assertRaises KeyError N/A N/A N/A N/A N/A self observer unsubscribe save self N/A test_broadcast N/A N/A self N/A N/A N/A listener N/A Listener N/A N/A N/A self assertEqual N/A listener msg fail N/A N/A N/A N/A self observer subscribe save listener N/A N/A N/A N/A self observer broadcast event save msg self N/A N/A N/A self assertEqual N/A listener msg ok N/A test_broadcast_without_listeners_is_ok N/A N/A self N/A N/A N/A N/A N/A N/A self observer broadcast event save msg self N/A N/A N/A self assertTrue True N/A test_broadcast_to_destroyed_listeners N/A N/A self N/A N/A N/A listener N/A Listener N/A N/A N/A N/A self observer subscribe save listener N/A listener N/A N/A N/A self assertEqual N/A N/A N/A self observer _count_listeners save 0 N/A N/A N/A N/A self observer broadcast event save msg self N/A test_broadcast_to_different_roots N/A N/A self N/A N/A N/A root1 N/A object N/A root2 N/A object N/A listeners N/A N/A Listener root1 N/A Listener root2 N/A ListenerWithoutGetXMLRootMethod N/A listener listeners N/A N/A N/A N/A N/A self observer subscribe save listener N/A N/A N/A N/A self observer broadcast event save msg self root root1 N/A N/A N/A self assertEqual N/A N/A listeners N/A 0 msg ok N/A N/A N/A self assertEqual N/A N/A listeners N/A 1 msg fail N/A N/A N/A self assertEqual N/A N/A listeners N/A 2 msg fail N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main