(self)
| 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(""" |
nothing calls this directly
no test coverage detected