Most of the process of writing the unit tests for the new data object classes can simply follow the process established in previous iterations:
- Create the top-level test module for the package being tested.
- Identify the child modules of the package being tested, and create a corresponding test module for each.
- Add references to the child test modules to the package test module and import their tests.
- For each child test module:
- Execute the module and create test case classes for each item reported as missing
- Execute the module and create tests methods for each member (property or method) reported as missing
There are several test modules that need to be created, one for each module that was created in the src directories across the projects this iteration touched, yielding the following:
- hms_core/../data_objects.py → test_hms_core/test_data_objects...