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

Method test_param_default

Lib/test/test_clinic.py:1063–1070  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1061 self.assertIsInstance(p.converter, int_converter)
1062
1063 def test_param_default(self):
1064 function = self.parse_function("""
1065 module os
1066 os.access
1067 follow_symlinks: bool = True
1068 """)
1069 p = function.parameters['follow_symlinks']
1070 self.assertEqual(True, p.default)
1071
1072 def test_param_with_continuations(self):
1073 function = self.parse_function(r"""

Callers

nothing calls this directly

Calls 2

parse_functionMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected