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

Method test_default_update

Lib/test/test_functools.py:987–992  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

985 return wrapper, f
986
987 def test_default_update(self):
988 wrapper, f = self._default_update()
989 self.check_wrapper(wrapper, f)
990 self.assertEqual(wrapper.__name__, 'f')
991 self.assertEqual(wrapper.__qualname__, f.__qualname__)
992 self.assertEqual(wrapper.attr, 'This is also a test')
993
994 @unittest.skipIf(sys.flags.optimize >= 2,
995 "Docstrings are omitted with -O2 and above")

Callers

nothing calls this directly

Calls 3

_default_updateMethod · 0.95
check_wrapperMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected