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