MCPcopy Index your code
hub / github.com/RustPython/RustPython / checkcall

Method checkcall

Lib/test/test_userstring.py:38–41  ·  view source on GitHub ↗
(self, object, methodname, *args)

Source from the content-addressed store, hash-verified

36 self.assertEqual(str(cm.exception), expected_msg)
37
38 def checkcall(self, object, methodname, *args):
39 object = self.fixtype(object)
40 # we don't fix the arguments, because UserString can't cope with it
41 getattr(object, methodname)(*args)
42
43 def test_rmod(self):
44 class ustr2(UserString):

Callers

nothing calls this directly

Calls 2

getattrFunction · 0.85
fixtypeMethod · 0.45

Tested by

no test coverage detected