Revision 00ef625c
ID | 00ef625c586bd7154ea5d7b293eec65bc014d0ce |
testutils: Module-level method for reading test data
This patch moves the functions “_ReadTestData” and “_TestDataFilename”
to module level. They do not depend on a class instance at all.
Some cases of “utils.ReadFile(self._TestDataFilename(…))” are also
corrected.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Bernardo Dal Seno <bdalseno@google.com>
Files
- added
- modified
- copied
- renamed
- deleted
- test
- py
- ganeti.bdev_unittest.py (diff)
- ganeti.cmdlib_unittest.py (diff)
- ganeti.hypervisor.hv_kvm_unittest.py (diff)
- ganeti.netutils_unittest.py (diff)
- ganeti.storage_unittest.py (diff)
- ganeti.tools.node_daemon_setup_unittest.py (diff)
- ganeti.tools.prepare_node_join_unittest.py (diff)
- ganeti.utils.io_unittest.py (diff)
- ganeti.utils.process_unittest.py (diff)
- ganeti.utils.x509_unittest.py (diff)
- testutils.py (diff)
- py