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

Method test_trivial

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

Source from the content-addressed store, hash-verified

1028 fn.docstring.strip())
1029
1030 def test_trivial(self):
1031 parser = DSLParser(_make_clinic())
1032 block = Block("""
1033 module os
1034 os.access
1035 """)
1036 parser.parse(block)
1037 module, function = block.signatures
1038 self.assertEqual("access", function.name)
1039 self.assertEqual("os", module.name)
1040
1041 def test_ignore_line(self):
1042 block = self.parse(dedent("""

Callers

nothing calls this directly

Calls 5

parseMethod · 0.95
DSLParserClass · 0.90
BlockClass · 0.90
_make_clinicFunction · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected