Unify some unittest functions
This patch adds unified temporary file handling to the testutils.GanetiTestCase class, which adds easy creation and automated cleanup of temporary files. The patch allows a simpler handling in a couple of test cases but requires all child classes to call the parent setUp and tearDown methods. Reviewed-by: ultrotter
Showing
- test/ganeti.bdev_unittest.py 1 addition, 0 deletionstest/ganeti.bdev_unittest.py
- test/ganeti.ssh_unittest.py 4 additions, 3 deletionstest/ganeti.ssh_unittest.py
- test/ganeti.utils_unittest.py 17 additions, 35 deletionstest/ganeti.utils_unittest.py
- test/testutils.py 29 additions, 0 deletionstest/testutils.py
Loading
Please register or sign in to comment