Unify some unittest functions
authorIustin Pop <iustin@google.com>
Tue, 20 Jan 2009 11:18:10 +0000 (11:18 +0000)
committerIustin Pop <iustin@google.com>
Tue, 20 Jan 2009 11:18:10 +0000 (11:18 +0000)
commit51596eb2c8b20e8d7dd01e23fe76625e82cf17c3
tree95d8e2957c7ef24d85f79202a979286f43ad2108
parent1492cca7a27fd8024a1ad58fe38924f2939f85f8
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
test/ganeti.bdev_unittest.py
test/ganeti.ssh_unittest.py
test/ganeti.utils_unittest.py
test/testutils.py