Module Import alias ImportFrom alias ImportFrom alias alias alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults Num body Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body Pass decorator_list decorator_list Assign NameStore Call NameLoad Num Num FunctionDef arguments args NameParam NameParam NameParam defaults body Pass decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults body Pass decorator_list Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad Str Num Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults body Pass decorator_list Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad Str Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Pass decorator_list decorator_list Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str Num Expr Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam defaults NameLoad body Pass decorator_list Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Expr Call NameLoad Num Expr Call AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad NameLoad attr Expr Call NameLoad Num Num Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr Expr Call NameLoad keyword Num keyword Num Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad FunctionDef arguments args NameParam defaults NameLoad body Pass decorator_list Assign NameStore Call NameLoad NameLoad NameLoad Expr Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults vararg kwarg body Pass decorator_list Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Num Call NameLoad body Pass decorator_list Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam defaults NameLoad vararg kwarg body Return TupleLoad NameLoad NameLoad NameLoad NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Num Num Num keyword Num keyword Num TupleLoad Num Num TupleLoad Num Dict Str Str Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad Num keyword Num keyword Num keyword Str TupleLoad Num Str TupleLoad Dict Str Str Num Num FunctionDef arguments args defaults vararg body Pass decorator_list Assign NameStore Call NameLoad NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad Num Num Str Num Expr Call AttributeLoad NameLoad attr Call NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Lambda arguments args defaults Call NameLoad keyword NameLoad FunctionDef arguments args defaults kwarg body Pass decorator_list Assign NameStore Call NameLoad NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad keyword NameLoad keyword NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Lambda arguments args defaults Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Pass decorator_list Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Num Num Num Num Expr Call AttributeLoad NameLoad attr Num Num Num Expr Call AttributeLoad NameLoad attr Num Num Num Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Num Num decorator_list Call AttributeLoad NameLoad attr NameLoad Str keyword NameLoad Expr Call NameLoad FunctionDef arguments args NameParam defaults body ImportFrom alias Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad decorator_list Call NameLoad Str keyword NameLoad Expr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults body Pass decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Lambda arguments args defaults Call NameLoad NameLoad FunctionDef arguments args NameParam defaults NameLoad body Pass decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Lambda arguments args defaults Call NameLoad NameLoad FunctionDef arguments args defaults vararg body Pass decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Lambda arguments args defaults Call NameLoad NameLoad FunctionDef arguments args defaults kwarg body Pass decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Lambda arguments args defaults Call NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad Assign NameStore BinOpMod Str NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad Num Num Expr Call AttributeLoad NameLoad attr Num Num Expr Call NameLoad Num Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call NameLoad NameLoad keyword NameLoad Expr Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad Assign NameStore BinOpMod Str NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad Num Num Expr Call AttributeLoad NameLoad attr Num Num Expr Call NameLoad Num Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call NameLoad NameLoad keyword NameLoad Expr Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Pass decorator_list decorator_list Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Num decorator_list Call AttributeLoad NameLoad attr NameLoad Str keyword NameLoad Expr Call NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad Assign NameStore Call NameLoad Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Num decorator_list Call AttributeLoad NameLoad attr NameLoad Str keyword NameLoad Expr Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call NameLoad Num Num Num Expr Call AttributeLoad NameLoad attr Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Num Num Num Expr Call AttributeLoad NameLoad attr Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Num Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad Num Num Num NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad TupleLoad Num Num Num Dict Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad TupleLoad TupleLoad Num Num Num Dict Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Num Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad Num Num Num Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Num Num Num Str Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad Num Num Num Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Num Num Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Num Num decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A inspect tests.support unittest2 mock Mock mocksignature patch Something N/A object N/A __init__ N/A N/A self foo bar N/A 10 N/A N/A N/A __call__ N/A N/A self foo bar N/A 5 N/A N/A N/A N/A N/A something N/A Something 1 2 f N/A N/A a b c N/A N/A N/A N/A TestMockSignature N/A N/A unittest2 TestCase N/A test_function N/A N/A self N/A N/A f N/A N/A a N/A N/A N/A N/A N/A mock N/A Mock N/A f2 N/A mocksignature f mock N/A N/A N/A self assertIs N/A f2 mock mock N/A N/A N/A self assertRaises TypeError f2 N/A N/A mock return_value 3 N/A N/A N/A self assertEqual N/A f2 foo 3 N/A N/A N/A mock assert_called_with foo N/A N/A N/A N/A f2 mock assert_called_with foo N/A test_function_without_explicit_mock N/A N/A self N/A N/A f N/A N/A a N/A N/A N/A N/A N/A f2 N/A mocksignature f N/A N/A N/A self assertIsInstance N/A f2 mock Mock N/A N/A N/A self assertRaises TypeError f2 N/A N/A N/A f2 mock return_value 3 N/A N/A N/A self assertEqual N/A f2 foo 3 N/A N/A N/A N/A f2 mock assert_called_with foo N/A test_method N/A N/A self N/A N/A Foo N/A object N/A method N/A N/A self a b N/A N/A N/A N/A N/A N/A f N/A Foo N/A mock N/A Mock N/A N/A mock return_value 3 N/A N/A f method N/A mocksignature N/A f method mock N/A N/A N/A self assertEqual N/A N/A f method foo bar 3 N/A N/A N/A mock assert_called_with foo bar N/A test_function_with_defaults N/A N/A self N/A N/A f N/A N/A a b N/A None N/A N/A N/A N/A mock N/A Mock N/A f2 N/A mocksignature f mock N/A N/A f2 3 N/A N/A N/A mock assert_called_with 3 None N/A N/A N/A mock reset_mock N/A N/A f2 1 7 N/A N/A N/A mock assert_called_with 1 7 N/A N/A N/A mock reset_mock N/A N/A f2 b 1 a 7 N/A N/A N/A mock assert_called_with 7 1 N/A N/A N/A mock reset_mock N/A a N/A object f N/A N/A a N/A a N/A N/A N/A N/A f2 N/A mocksignature f mock N/A N/A f2 N/A N/A N/A mock assert_called_with a N/A test_introspection N/A N/A self N/A N/A f N/A N/A a N/A args kwargs N/A N/A N/A N/A f2 N/A mocksignature f f N/A N/A N/A self assertEqual N/A N/A inspect getargspec f N/A N/A inspect getargspec f2 f N/A N/A a b c d N/A None 3 N/A object N/A N/A N/A N/A f2 N/A mocksignature f f N/A N/A N/A self assertEqual N/A N/A inspect getargspec f N/A N/A inspect getargspec f2 N/A test_function_with_varargs_and_kwargs N/A N/A self N/A N/A f N/A N/A a b N/A None args kwargs N/A N/A N/A a b args kwargs N/A N/A f2 N/A mocksignature f f N/A N/A N/A self assertEqual N/A f2 3 4 5 x 6 y 9 N/A 3 4 N/A 5 N/A x y 6 9 N/A N/A N/A self assertEqual N/A f2 3 x 6 y 9 b a N/A 3 a N/A N/A x y 6 9 f N/A N/A N/A args N/A N/A N/A N/A g N/A mocksignature f N/A N/A N/A g mock return_value 3 N/A N/A N/A self assertEqual N/A g 1 2 many 3 N/A N/A N/A self assertEqual N/A g 3 N/A N/A N/A self assertRaises TypeError N/A N/A N/A N/A N/A g a None f N/A N/A N/A kwargs N/A N/A N/A N/A g N/A mocksignature f N/A N/A N/A g mock return_value 3 N/A N/A N/A self assertEqual N/A g 3 N/A N/A N/A self assertEqual N/A g a None b None 3 N/A N/A N/A self assertRaises TypeError N/A N/A N/A N/A N/A g None N/A test_mocksignature_with_patch N/A N/A self N/A N/A N/A mock N/A Mock f N/A N/A a b c N/A N/A N/A N/A N/A N/A mock f f test N/A N/A mock_f N/A N/A N/A N/A N/A self assertRaises TypeError N/A mock f 3 4 N/A N/A N/A self assertRaises TypeError N/A mock f 3 4 5 6 N/A N/A N/A mock f 1 2 3 N/A N/A N/A mock_f assert_called_with 1 2 3 N/A N/A N/A N/A N/A mock f mock assert_called_with 1 2 3 N/A N/A N/A patch object mock f mocksignature True N/A N/A test test N/A N/A mock_wibble N/A N/A tests.support SomeClass N/A instance N/A SomeClass N/A N/A N/A self assertRaises TypeError N/A instance wibble 1 N/A N/A N/A instance wibble N/A N/A N/A mock_wibble assert_called_with instance N/A N/A N/A N/A N/A instance wibble mock assert_called_with instance N/A N/A patch tests.support.SomeClass.wibble mocksignature True N/A N/A test N/A test_mocksignature_with_reserved_arg N/A N/A self N/A N/A f N/A N/A _mock_ N/A N/A N/A N/A N/A N/A N/A self assertRaises AssertionError N/A N/A N/A N/A N/A mocksignature f f N/A N/A _mock_ N/A None N/A N/A N/A N/A N/A N/A self assertRaises AssertionError N/A N/A N/A N/A N/A mocksignature f f N/A N/A N/A _mock_ N/A N/A N/A N/A N/A N/A self assertRaises AssertionError N/A N/A N/A N/A N/A mocksignature f f N/A N/A N/A _mock_ N/A N/A N/A N/A N/A N/A self assertRaises AssertionError N/A N/A N/A N/A N/A mocksignature f N/A N/A N/A unittest2 skipUnless __debug__ assert disabled when run with -O/OO test_mocksignature_class N/A N/A self N/A N/A N/A MockedSomething N/A mocksignature Something N/A result N/A MockedSomething 5 23 N/A N/A N/A self assertIs result N/A N/A MockedSomething mock return_value N/A N/A MockedSomething 1 N/A N/A N/A N/A MockedSomething mock assert_caled_with 1 10 N/A N/A N/A self assertRaises TypeError MockedSomething N/A test_mocksignature_callable N/A N/A self N/A N/A N/A mocked_something N/A mocksignature something N/A result N/A mocked_something 5 23 N/A N/A N/A self assertIs result N/A N/A mocked_something mock return_value N/A N/A mocked_something 1 N/A N/A N/A N/A mocked_something mock assert_caled_with 1 5 N/A N/A N/A self assertRaises TypeError mocked_something N/A test_patch_mocksignature_class N/A N/A self N/A N/A N/A original_something Something N/A something_name N/A %s.Something __name__ test N/A N/A MockSomething N/A N/A N/A N/A Something 3 5 N/A N/A N/A MockSomething assert_called_with 3 5 N/A N/A Something 6 N/A N/A N/A MockSomething assert_called_with 6 10 N/A N/A N/A self assertRaises TypeError Something N/A N/A patch something_name mocksignature True N/A N/A test N/A N/A N/A self assertIs Something original_something N/A test_patch_mocksignature_callable N/A N/A self N/A N/A N/A original_something something N/A something_name N/A %s.something __name__ test N/A N/A MockSomething N/A N/A N/A N/A something 3 4 N/A N/A N/A MockSomething assert_called_with 3 4 N/A N/A something 6 N/A N/A N/A MockSomething assert_called_with 6 5 N/A N/A N/A self assertRaises TypeError something N/A N/A patch something_name mocksignature True N/A N/A test N/A N/A N/A self assertIs something original_something N/A test_patchobject_mocksignature N/A N/A self N/A N/A something N/A object N/A meth N/A N/A self a b c N/A N/A N/A N/A N/A N/A original N/A N/A something __dict__ N/A meth test N/A N/A _ N/A N/A N/A N/A N/A self assertIsNot N/A N/A something __dict__ N/A meth original N/A thing N/A something N/A N/A N/A thing meth 1 2 3 N/A N/A N/A self assertRaises TypeError N/A thing meth 1 N/A N/A N/A patch object something meth mocksignature True N/A N/A test N/A N/A N/A self assertIs N/A N/A something __dict__ N/A meth original N/A thing N/A something N/A original N/A thing meth test N/A N/A _ N/A N/A N/A N/A N/A thing meth 1 2 3 N/A N/A N/A self assertRaises TypeError N/A thing meth 1 N/A N/A N/A patch object thing meth mocksignature True N/A N/A test N/A N/A N/A self assertEqual N/A thing meth original N/A N/A N/A self assertNotIn meth N/A thing __dict__ N/A test_assert_called_with N/A N/A self N/A N/A N/A func N/A mocksignature f N/A N/A N/A self assertRaises AssertionError N/A func assert_called_with N/A N/A N/A self assertRaises AssertionError N/A func assert_called_once_with N/A N/A func 1 2 3 N/A N/A N/A func assert_called_with 1 2 3 N/A N/A N/A self assertRaises AssertionError N/A func assert_called_with 4 5 6 N/A N/A N/A func assert_called_once_with 1 2 3 N/A N/A N/A self assertRaises AssertionError N/A func assert_called_once_with 4 5 6 N/A test_mock_attributes N/A N/A self N/A N/A N/A func N/A mocksignature f N/A return_value N/A func return_value N/A N/A N/A self assertIsInstance return_value Mock N/A N/A N/A self assertIsNone N/A func side_effect N/A N/A N/A self assertFalse N/A func called N/A N/A N/A self assertIsNone N/A func call_args N/A N/A N/A self assertEqual N/A func call_count 0 N/A N/A N/A self assertEqual N/A func method_calls N/A N/A N/A N/A self assertEqual N/A func call_args_list N/A N/A N/A N/A self assertIs N/A func _mock_children N/A N/A func mock _mock_children N/A N/A N/A self assertIs N/A func 1 2 3 return_value N/A N/A N/A self assertTrue N/A func called N/A N/A N/A self assertEqual N/A func call_args N/A N/A 1 2 3 N/A N/A N/A N/A self assertEqual N/A func call_count 1 N/A N/A N/A self assertEqual N/A func method_calls N/A N/A N/A N/A self assertEqual N/A func call_args_list N/A N/A N/A 1 2 3 N/A N/A N/A N/A N/A func method_calls append foo N/A N/A return_value N/A N/A N/A func reset_mock N/A N/A N/A self assertEqual N/A return_value call_count False N/A N/A N/A self assertFalse N/A func called N/A N/A N/A self assertIsNone N/A func call_args N/A N/A N/A self assertEqual N/A func call_count 0 N/A N/A N/A self assertEqual N/A func method_calls N/A N/A N/A N/A self assertEqual N/A func call_args_list N/A N/A N/A N/A self assertIs N/A func _mock_children N/A N/A func mock _mock_children N/A N/A func side_effect KeyError N/A N/A N/A self assertRaises KeyError func 1 2 3 N/A N/A N/A self assertTrue N/A func called N/A N/A func side_effect None N/A N/A func return_value foo N/A N/A N/A self assertEqual N/A func 1 2 3 foo N/A N/A N/A self assertEqual N/A func call_count 2 N/A test_return_value_from_existing_mock N/A N/A self N/A N/A N/A mock N/A Mock return_value foo N/A func N/A mocksignature f mock N/A N/A N/A self assertEqual N/A func 1 2 3 foo N/A N/A mock return_value bar N/A N/A N/A self assertEqual N/A func 1 2 3 bar N/A test_side_effect_from_existing_mock N/A N/A self N/A N/A N/A mock N/A Mock side_effect KeyError N/A func N/A mocksignature f mock N/A N/A N/A self assertRaises KeyError func 1 2 3 N/A N/A mock side_effect NameError N/A N/A N/A self assertRaises NameError func 1 2 3 N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest2 main