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

Method test_param

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

Source from the content-addressed store, hash-verified

1049 self.assertEqual("os", module.name)
1050
1051 def test_param(self):
1052 function = self.parse_function("""
1053 module os
1054 os.access
1055 path: int
1056 """)
1057 self.assertEqual("access", function.name)
1058 self.assertEqual(2, len(function.parameters))
1059 p = function.parameters['path']
1060 self.assertEqual('path', p.name)
1061 self.assertIsInstance(p.converter, int_converter)
1062
1063 def test_param_default(self):
1064 function = self.parse_function("""

Callers

nothing calls this directly

Calls 3

parse_functionMethod · 0.95
assertIsInstanceMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected