~curtin-dev/curtin/trunk

Viewing all changes in revision 519.

  • 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.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: