MCPcopy
hub / github.com/tornadoweb/tornado / test_omitted

Method test_omitted

tornado/test/util_test.py:254–261  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

252 self.replacer = ArgReplacer(function, "callback")
253
254 def test_omitted(self):
255 args = (1, 2)
256 kwargs: Dict[str, Any] = dict()
257 self.assertIsNone(self.replacer.get_old_value(args, kwargs))
258 self.assertEqual(
259 self.replacer.replace("new", args, kwargs),
260 (None, (1, 2), dict(callback="new")),
261 )
262
263 def test_position(self):
264 args = (1, 2, "old", 3)

Callers

nothing calls this directly

Calls 2

get_old_valueMethod · 0.80
replaceMethod · 0.80

Tested by

no test coverage detected