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

Method test_position

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

Source from the content-addressed store, hash-verified

261 )
262
263 def test_position(self):
264 args = (1, 2, "old", 3)
265 kwargs: Dict[str, Any] = dict()
266 self.assertEqual(self.replacer.get_old_value(args, kwargs), "old")
267 self.assertEqual(
268 self.replacer.replace("new", args, kwargs),
269 ("old", [1, 2, "new", 3], dict()),
270 )
271
272 def test_keyword(self):
273 args = (1,)

Callers

nothing calls this directly

Calls 2

get_old_valueMethod · 0.80
replaceMethod · 0.80

Tested by

no test coverage detected