-
Committer:
Scott Moser
-
Author(s):
Chad Smith
-
Date:
2017-08-03 19:34:57 UTC
-
mfrom:
(515.2.6 common-ci-test-case)
-
Revision ID:
smoser@ubuntu.com-20170803193457-outp1jygw09kwmuw
tests: Add CiTestCase common parent for all curtin tests.
This branch makes sure all unittests subclass from CiTestCase which
provides all unit tests with a tmp_dir and tmp_path creation. Drop
unittest-specific tempfile usage in favor of self.tmp_dir and
self.tmp_path.
Adding this parent class gives us a single place to add test methods which
have general application across unit tests, like log tracking and tmp
directory cleanup.