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