Module ImportFrom alias Import alias Import alias FunctionDef arguments args defaults body FunctionDef arguments args defaults body ClassDef bases body Pass decorator_list Return NameLoad decorator_list Return Lambda arguments args defaults NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body ClassDef bases body FunctionDef arguments args NameParam defaults body Pass decorator_list decorator_list FunctionDef arguments args defaults body Return Num decorator_list Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body TryExcept body Expr Call NameLoad NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad TryExcept body Expr Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Num Expr Call AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults body Expr Str Return Num decorator_list Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults body Pass decorator_list Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Num TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num FunctionDef arguments args defaults body Print NameLoad decorator_list Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad SubscriptLoad NameLoad Index Num attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults body Print NameLoad decorator_list TryExcept body Expr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr handlers ExceptHandler type NameLoad body Pass orelse Expr Call AttributeLoad NameLoad attr Str Assign NameStore Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Num NameLoad Assign NameStore Str Exec NameLoad Dict Str Dict Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad Call NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad Call Call NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad Call Call Call NameLoad attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore TupleLoad Num Num FunctionDef arguments args defaults body Pass decorator_list FunctionDef arguments args defaults body Return Num decorator_list FunctionDef arguments args defaults body Return NameLoad decorator_list FunctionDef arguments args defaults body Return NameLoad decorator_list FunctionDef arguments args defaults body Return TupleLoad NameLoad NameLoad decorator_list For NameStore ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad Num Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Num TryExcept body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass orelse Expr Call AttributeLoad NameLoad attr Str TryExcept body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass orelse Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Delete AttributeDel AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam defaults body Return BinOpAdd NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num Num body Return BinOpAdd NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad Num Num Assign AttributeStore NameLoad attr TupleLoad Num Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad Num Num Num Delete AttributeDel NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad TryExcept body Expr Call NameLoad handlers ExceptHandler type NameLoad body Pass orelse Expr Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad AttributeLoad NameLoad attr TryExcept body Expr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr handlers ExceptHandler type NameLoad body Pass orelse Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Num NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num TryExcept body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Num handlers ExceptHandler type NameLoad body Pass orelse Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Delete AttributeDel AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Pass orelse Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body For NameStore ListLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body TryExcept body Expr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass orelse Expr Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str NameLoad NameLoad ImportFrom alias Assign NameStore Call NameLoad Dict Str Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Num Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Delete AttributeDel AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Pass orelse Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Dict decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Dict Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Str Delete AttributeDel AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults body Print NameLoad decorator_list Assign NameStore NameLoad Return SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str FunctionDef arguments args defaults body Print NameLoad decorator_list If UnaryOpNot NameLoad body Assign NameStore Num Return SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr CompareLt Call NameLoad Num Call NameLoad Num Expr Call AttributeLoad NameLoad attr CompareLt Call NameLoad Call NameLoad Str Expr Call AttributeLoad NameLoad attr CompareEq Call NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr CompareEq Call NameLoad Num Call NameLoad Num Expr Call AttributeLoad NameLoad attr CompareGt Call NameLoad NameLoad Call NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults body Pass decorator_list Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareIs AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareIs AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Import alias Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad ListLoad Num Num Num attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad Dict Str Str attr attr Str decorator_list decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A test support N/A types N/A unittest global_function N/A N/A N/A N/A inner_function N/A N/A N/A N/A LocalClass N/A N/A N/A N/A N/A LocalClass N/A N/A N/A N/A N/A N/A inner_function N/A FuncAttrsTest N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A F N/A N/A a N/A N/A self N/A N/A N/A N/A N/A b N/A N/A N/A N/A N/A 3 N/A N/A N/A self fi N/A F N/A N/A self F F N/A N/A self b b N/A cannot_set_attr N/A N/A self obj name value exceptions N/A N/A N/A N/A N/A N/A setattr obj name value N/A N/A N/A exceptions N/A N/A N/A N/A N/A N/A self fail N/A shouldn't be able to set %s to %r N/A name value N/A N/A N/A N/A delattr obj name N/A N/A N/A exceptions N/A N/A N/A N/A N/A N/A self fail N/A shouldn't be able to del %s name N/A N/A FunctionPropertiesTest N/A FuncAttrsTest N/A test_module N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A self b __module__ __name__ N/A test_dir_includes_correct_attrs N/A N/A self N/A N/A N/A N/A N/A self b known_attr 7 N/A N/A N/A self assertIn known_attr N/A dir N/A self b set attributes not in dir listing of method N/A N/A N/A N/A self F a known_attr 7 N/A N/A N/A self assertIn known_attr N/A dir N/A N/A self fi a set attribute on function implementations, should show up in next dir N/A test_duplicate_function_equality N/A N/A self N/A N/A duplicate N/A N/A N/A N/A N/A my docstring N/A 3 N/A N/A N/A N/A self assertNotEqual N/A self b duplicate N/A test_copying___code__ N/A N/A self N/A N/A test N/A N/A N/A N/A N/A N/A N/A N/A N/A self assertEqual N/A test None N/A N/A test __code__ N/A N/A self b __code__ N/A N/A N/A self assertEqual N/A test 3 N/A test___globals__ N/A N/A self N/A N/A N/A N/A N/A self assertIs N/A N/A self b __globals__ N/A globals N/A N/A N/A self cannot_set_attr N/A self b __globals__ 2 N/A AttributeError TypeError N/A test___closure__ N/A N/A self N/A N/A N/A a 12 f N/A N/A N/A N/A N/A a N/A N/A c N/A f __closure__ N/A N/A N/A self assertIsInstance c tuple N/A N/A N/A self assertEqual N/A len c 1 N/A N/A N/A self assertEqual N/A N/A N/A c N/A 0 __class__ __name__ cell N/A N/A N/A self cannot_set_attr f __closure__ c AttributeError N/A test_empty_cell N/A N/A self N/A N/A f N/A N/A N/A N/A N/A a N/A N/A N/A N/A N/A N/A N/A f __closure__ N/A 0 cell_contents N/A N/A N/A ValueError N/A N/A N/A N/A N/A N/A self fail shouldn't be able to read an empty cell N/A a 12 N/A test___name__ N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A self b __name__ b N/A N/A N/A self b __name__ c N/A N/A N/A self assertEqual N/A N/A self b __name__ c N/A N/A N/A self b __name__ d N/A N/A N/A self assertEqual N/A N/A self b __name__ d N/A N/A N/A self cannot_set_attr N/A self b __name__ 7 TypeError N/A s def f(): pass
f.__name__ N/A s N/A __builtins__ N/A N/A N/A N/A self assertEqual N/A N/A N/A self fi a __name__ a N/A N/A N/A self cannot_set_attr N/A N/A self fi a __name__ a AttributeError N/A test___qualname__ N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A self b __qualname__ FuncAttrsTest.setUp.<locals>.b N/A N/A N/A self assertEqual N/A N/A FuncAttrsTest setUp __qualname__ FuncAttrsTest.setUp N/A N/A N/A self assertEqual N/A global_function __qualname__ global_function N/A N/A N/A self assertEqual N/A N/A global_function __qualname__ global_function.<locals>.<lambda> N/A N/A N/A self assertEqual N/A N/A N/A global_function __qualname__ global_function.<locals>.inner_function N/A N/A N/A self assertEqual N/A N/A N/A N/A global_function __qualname__ global_function.<locals>.inner_function.<locals>.LocalClass N/A N/A N/A self b __qualname__ c N/A N/A N/A self assertEqual N/A N/A self b __qualname__ c N/A N/A N/A self b __qualname__ d N/A N/A N/A self assertEqual N/A N/A self b __qualname__ d N/A N/A N/A self cannot_set_attr N/A self b __qualname__ 7 TypeError N/A test___code__ N/A N/A self N/A N/A N/A N/A num_one num_two N/A 7 8 a N/A N/A N/A N/A N/A N/A b N/A N/A N/A N/A N/A 12 N/A c N/A N/A N/A N/A N/A num_one N/A d N/A N/A N/A N/A N/A num_two N/A e N/A N/A N/A N/A N/A N/A num_one num_two N/A N/A func N/A a b c d e N/A N/A N/A N/A self assertEqual N/A type N/A func __code__ N/A types CodeType N/A N/A N/A self assertEqual N/A c 7 N/A N/A N/A self assertEqual N/A d 8 N/A N/A d __code__ N/A c __code__ N/A N/A N/A self assertEqual N/A c __code__ N/A d __code__ N/A N/A N/A self assertEqual N/A c 7 N/A N/A N/A N/A b __code__ N/A c __code__ N/A N/A N/A ValueError N/A N/A N/A N/A N/A N/A self fail __code__ with different numbers of free vars should not be possible N/A N/A N/A N/A e __code__ N/A d __code__ N/A N/A N/A ValueError N/A N/A N/A N/A N/A N/A self fail __code__ with different numbers of free vars should not be possible N/A test_blank_func_defaults N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A self b __defaults__ None N/A N/A N/A self b __defaults__ N/A N/A N/A self assertEqual N/A N/A self b __defaults__ None N/A test_func_default_args N/A N/A self N/A N/A first_func N/A N/A a b N/A N/A N/A N/A a b N/A second_func N/A N/A a b N/A 1 2 N/A N/A N/A a b N/A N/A N/A N/A self assertEqual N/A first_func __defaults__ None N/A N/A N/A self assertEqual N/A second_func __defaults__ N/A 1 2 N/A N/A first_func __defaults__ N/A 1 2 N/A N/A N/A self assertEqual N/A first_func __defaults__ N/A 1 2 N/A N/A N/A self assertEqual N/A first_func 3 N/A N/A N/A self assertEqual N/A first_func 3 5 N/A N/A N/A self assertEqual N/A first_func 3 5 8 N/A N/A second_func __defaults__ N/A N/A N/A self assertEqual N/A second_func __defaults__ None N/A N/A N/A N/A second_func N/A N/A N/A TypeError N/A N/A N/A N/A N/A N/A self fail __defaults__ does not update; deleting it does not remove requirement N/A N/A InstancemethodAttrTest N/A FuncAttrsTest N/A test___class__ N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A N/A N/A self fi a __self__ __class__ N/A self F N/A N/A N/A self cannot_set_attr N/A N/A self fi a __class__ N/A self F TypeError N/A test___func__ N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A N/A self fi a __func__ N/A N/A self F a N/A N/A N/A self cannot_set_attr N/A N/A self fi a __func__ N/A N/A self F a AttributeError N/A test___self__ N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A N/A self fi a __self__ N/A self fi N/A N/A N/A self cannot_set_attr N/A N/A self fi a __self__ N/A self fi AttributeError N/A test___func___non_method N/A N/A self N/A N/A N/A N/A N/A self fi id N/A N/A types MethodType id N/A self fi N/A N/A N/A self assertEqual N/A N/A N/A self fi id N/A id N/A self fi N/A N/A N/A N/A N/A N/A self fi id unknown_attr N/A N/A N/A AttributeError N/A N/A N/A N/A N/A N/A self fail using unknown attributes should raise AttributeError N/A N/A N/A self cannot_set_attr N/A N/A self fi id unknown_attr 2 AttributeError N/A N/A ArbitraryFunctionAttrTest N/A FuncAttrsTest N/A test_set_attr N/A N/A self N/A N/A N/A N/A N/A self b known_attr 7 N/A N/A N/A self assertEqual N/A N/A self b known_attr 7 N/A N/A N/A N/A N/A N/A self fi a known_attr 7 N/A N/A N/A AttributeError N/A N/A N/A N/A N/A N/A self fail setting attributes on methods should raise error N/A test_delete_unknown_attr N/A N/A self N/A N/A N/A N/A N/A N/A N/A self b unknown_attr N/A N/A N/A AttributeError N/A N/A N/A N/A N/A N/A self fail deleting unknown attribute should raise TypeError N/A test_unset_attr N/A N/A self N/A N/A N/A func N/A N/A self b N/A N/A self fi a N/A N/A N/A N/A N/A func non_existent_attr N/A N/A N/A AttributeError N/A N/A N/A N/A N/A N/A self fail using unknown attributes should raise AttributeError N/A N/A FunctionDictsTest N/A FuncAttrsTest N/A test_setting_dict_to_invalid N/A N/A self N/A N/A N/A N/A N/A self cannot_set_attr N/A self b __dict__ None TypeError collections UserDict N/A d N/A UserDict N/A known_attr 7 N/A N/A N/A self cannot_set_attr N/A N/A N/A self fi a __func__ __dict__ d TypeError N/A test_setting_dict_to_valid N/A N/A self N/A N/A N/A d N/A known_attr 7 N/A N/A N/A self b __dict__ d N/A N/A N/A self assertIs d N/A N/A self b __dict__ N/A N/A N/A N/A self F a __dict__ d N/A N/A N/A self assertIs d N/A N/A N/A N/A self fi a __func__ __dict__ N/A N/A N/A self assertIs d N/A N/A N/A self fi a __dict__ N/A N/A N/A self assertEqual N/A N/A self b known_attr 7 N/A N/A N/A self assertEqual N/A N/A N/A self b __dict__ N/A known_attr 7 N/A N/A N/A self assertEqual N/A N/A N/A N/A self fi a __func__ known_attr 7 N/A N/A N/A self assertEqual N/A N/A N/A self fi a known_attr 7 N/A test_delete___dict__ N/A N/A self N/A N/A N/A N/A N/A N/A N/A self b __dict__ N/A N/A N/A TypeError N/A N/A N/A N/A N/A N/A self fail deleting function dictionary should raise TypeError N/A test_unassigned_dict N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A self b __dict__ N/A N/A test_func_as_dict_key N/A N/A self N/A N/A N/A value Some string N/A d N/A N/A N/A d N/A N/A self b value N/A N/A N/A self assertEqual N/A d N/A N/A self b value N/A N/A FunctionDocstringTest N/A FuncAttrsTest N/A test_set_docstring_attr N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A self b __doc__ None N/A docstr A test method that does nothing N/A N/A N/A self b __doc__ docstr N/A N/A N/A N/A self F a __doc__ docstr N/A N/A N/A self assertEqual N/A N/A self b __doc__ docstr N/A N/A N/A self assertEqual N/A N/A N/A self fi a __doc__ docstr N/A N/A N/A self cannot_set_attr N/A N/A self fi a __doc__ docstr AttributeError N/A test_delete_docstring N/A N/A self N/A N/A N/A N/A N/A self b __doc__ The docstring N/A N/A N/A self b __doc__ N/A N/A N/A self assertEqual N/A N/A self b __doc__ None N/A N/A cell N/A N/A value N/A N/A N/A Create a cell containing the given value. f N/A N/A N/A N/A N/A a N/A N/A a value N/A N/A N/A f __closure__ N/A 0 N/A empty_cell N/A N/A empty N/A True N/A N/A Create an empty cell. f N/A N/A N/A N/A N/A a N/A N/A N/A empty N/A N/A a 1729 N/A N/A N/A f __closure__ N/A 0 N/A CellTest N/A N/A unittest TestCase N/A test_comparison N/A N/A self N/A N/A N/A N/A N/A self assertTrue N/A N/A cell 2 N/A cell 3 N/A N/A N/A self assertTrue N/A N/A empty_cell N/A cell saturday N/A N/A N/A self assertTrue N/A N/A empty_cell N/A empty_cell N/A N/A N/A self assertTrue N/A N/A cell -36 N/A cell -36.0 N/A N/A N/A self assertTrue N/A N/A cell True N/A empty_cell N/A N/A StaticMethodAttrsTest N/A N/A unittest TestCase N/A test_func_attribute N/A N/A self N/A N/A f N/A N/A N/A N/A N/A N/A N/A c N/A classmethod f N/A N/A N/A self assertTrue N/A N/A c __func__ f N/A s N/A staticmethod f N/A N/A N/A self assertTrue N/A N/A s __func__ f N/A N/A BuiltinFunctionPropertiesTest N/A N/A unittest TestCase N/A test_builtin__qualname__ N/A N/A self N/A N/A N/A time N/A N/A N/A self assertEqual N/A len __qualname__ len N/A N/A N/A self assertEqual N/A N/A time time __qualname__ time N/A N/A N/A self assertEqual N/A N/A dict fromkeys __qualname__ dict.fromkeys N/A N/A N/A self assertEqual N/A N/A float __getformat__ __qualname__ float.__getformat__ N/A N/A N/A self assertEqual N/A N/A str maketrans __qualname__ str.maketrans N/A N/A N/A self assertEqual N/A N/A bytes maketrans __qualname__ bytes.maketrans N/A N/A N/A self assertEqual N/A N/A N/A 1 2 3 append __qualname__ list.append N/A N/A N/A self assertEqual N/A N/A N/A foo bar pop __qualname__ dict.pop N/A N/A test_main N/A N/A N/A N/A N/A N/A N/A support run_unittest FunctionPropertiesTest InstancemethodAttrTest ArbitraryFunctionAttrTest FunctionDictsTest FunctionDocstringTest CellTest StaticMethodAttrsTest BuiltinFunctionPropertiesTest N/A N/A N/A __name__ __main__ N/A N/A N/A test_main