(test, path)
| 71 | |
| 72 | |
| 73 | def test_missing_directory(test, path): |
| 74 | if path in test.whitelist: |
| 75 | return |
| 76 | |
| 77 | dir_exists = os.path.isdir(abs_path(path)) |
| 78 | entry_exists = path in test.entries |
| 79 | |
| 80 | if dir_exists and not entry_exists: |
| 81 | problem = "'" + test.entries_file + "' is missing '" + path + "'" |
| 82 | solution = "Please add the missing entry (comment to whitelist if needed)." |
| 83 | raise AssertionError(problem + "\n" + solution) |
| 84 | |
| 85 | |
| 86 | class PythonModuleTest(unittest.TestCase): |
no test coverage detected