10048b1e8b78e92f522a00bb9260d2a47824564f
[rnaseq-cwl-training.git] / bin / test_lesson_check.py
1 import unittest
2
3 import lesson_check
4 import util
5
6
7 class TestFileList(unittest.TestCase):
8     def setUp(self):
9         self.reporter = util.Reporter()  # TODO: refactor reporter class.
10
11     def test_file_list_has_expected_entries(self):
12         # For first pass, simply assume that all required files are present
13         all_filenames = [filename.replace('%', '')
14                          for filename in lesson_check.REQUIRED_FILES]
15
16         lesson_check.check_fileset('', self.reporter, all_filenames)
17         self.assertEqual(len(self.reporter.messages), 0)
18
19
20 if __name__ == "__main__":
21     unittest.main()