(self)
| 6496 | |
| 6497 | class TestMain(unittest.TestCase): |
| 6498 | def test_only_source(self): |
| 6499 | module = importlib.import_module('unittest') |
| 6500 | rc, out, err = assert_python_ok('-m', 'inspect', |
| 6501 | 'unittest') |
| 6502 | lines = out.decode().splitlines() |
| 6503 | # ignore the final newline |
| 6504 | self.assertEqual(lines[:-1], inspect.getsource(module).splitlines()) |
| 6505 | self.assertEqual(err, b'') |
| 6506 | |
| 6507 | def test_custom_getattr(self): |
| 6508 | def foo(): |
nothing calls this directly
no test coverage detected