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

Method test_keyword

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

Source from the content-addressed store, hash-verified

270 )
271
272 def test_keyword(self):
273 args = (1,)
274 kwargs = dict(y=2, callback="old", z=3)
275 self.assertEqual(self.replacer.get_old_value(args, kwargs), "old")
276 self.assertEqual(
277 self.replacer.replace("new", args, kwargs),
278 ("old", (1,), dict(y=2, callback="new", z=3)),
279 )
280
281
282class TimedeltaToSecondsTest(unittest.TestCase):

Callers

nothing calls this directly

Calls 2

get_old_valueMethod · 0.80
replaceMethod · 0.80

Tested by

no test coverage detected