MCPcopy Index your code
hub / github.com/python/cpython / _test

Method _test

Lib/test/test_unittest/testmock/testpatch.py:949–952  ·  view source on GitHub ↗
(mock)

Source from the content-addressed store, hash-verified

947 def a(self): pass
948
949 def _test(mock):
950 mock(1)
951 mock.assert_called_with(1)
952 self.assertRaises(TypeError, mock)
953
954 def _test2(mock):
955 mock.f(1)

Callers

nothing calls this directly

Calls 7

is_instanceFunction · 0.90
assert_called_withMethod · 0.80
assertFalseMethod · 0.80
assertTrueMethod · 0.80
assertRaisesMethod · 0.45
popMethod · 0.45
assertIsMethod · 0.45

Tested by

no test coverage detected