MCPcopy Index your code
hub / github.com/python/cpython / test_keyword

Method test_keyword

Lib/test/test_functools.py:155–161  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

153 self.assertTrue(expected == got and empty == {})
154
155 def test_keyword(self):
156 # make sure keyword arguments are captured correctly
157 for a in ['a', 0, None, 3.5]:
158 p = self.partial(capture, a=a)
159 expected = {'a':a,'x':None}
160 empty, got = p(x=None)
161 self.assertTrue(expected == got and empty == ())
162
163 def test_no_side_effects(self):
164 # make sure there are no side effects that affect subsequent calls

Callers

nothing calls this directly

Calls 3

partialMethod · 0.80
assertTrueMethod · 0.80
pFunction · 0.50

Tested by

no test coverage detected