MCPcopy Create free account
hub / github.com/EasyIME/PIME / test_position

Method test_position

python/python3/tornado/test/util_test.py:249–256  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

247 )
248
249 def test_position(self):
250 args = (1, 2, "old", 3)
251 kwargs = dict() # type: Dict[str, Any]
252 self.assertEqual(self.replacer.get_old_value(args, kwargs), "old")
253 self.assertEqual(
254 self.replacer.replace("new", args, kwargs),
255 ("old", [1, 2, "new", 3], dict()),
256 )
257
258 def test_keyword(self):
259 args = (1,)

Callers

nothing calls this directly

Calls 2

get_old_valueMethod · 0.80
replaceMethod · 0.80

Tested by

no test coverage detected