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

Method _test

Lib/test/test_unittest/testmock/testpatch.py:1276–1279  ·  view source on GitHub ↗
(self, mock_foo)

Source from the content-addressed store, hash-verified

1274 class SomeTest(object):
1275
1276 def _test(self, mock_foo):
1277 test.assertIsNot(Foo, original)
1278 test.assertIs(Foo, mock_foo)
1279 test.assertIsInstance(Foo, SomeClass)
1280
1281 def test_two(self, mock_foo):
1282 self._test(mock_foo)

Callers 2

test_twoMethod · 0.95
test_oneMethod · 0.95

Calls 6

is_instanceFunction · 0.90
assertIsNotMethod · 0.80
assertIsInstanceMethod · 0.80
assertTrueMethod · 0.80
assertIsMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected