diskimage-builder/diskimage_builder/block_device/tests
Ian Wienand cdb1a95be1 Move "functional" unit tests under block-device
This is code motion with some small changes to make follow-on's
easier.

test_blockdevice_mbr.py is moved alongside the other tests.  It is
modified slightly to use the standard base class and remove a lot of
repeated test setup; a fixture is used for the tempdir (so it doesn't
have to be torn-down, and is removed properly on error) and the partx
args are moved into the setUp() so each test doesn't have to create
it.  No functional change.  renamed test_mbr.py for shortness.

test_blockdevice_utils.py is merged with existing test_utils.py.  No
change to the tests.

test_blockdevice.py is removed.  It isn't doing anything currently; to
work it will need to take an approach based more on mocking of calls
that require elevated permissions.  It's in history if we need it.

Change-Id: I87b1ea94afaaa0b44e6a57b9d073f95a63a04cf0
2017-06-05 12:22:52 +10:00
..
config Add state object, rename "results", add unit tests 2017-05-30 20:39:00 +10:00
plugin Add state object, rename "results", add unit tests 2017-05-30 20:39:00 +10:00
__init__.py Refactor: block-device handling (local loop) 2016-09-08 04:31:01 +00:00
test_base.py Add state object, rename "results", add unit tests 2017-05-30 20:39:00 +10:00
test_config.py Replace assertRaisesRegexp with assertRaisesRegex 2017-06-03 13:27:37 +07:00
test_mbr.py Move "functional" unit tests under block-device 2017-06-05 12:22:52 +10:00
test_mount_order.py Add state object, rename "results", add unit tests 2017-05-30 20:39:00 +10:00
test_state.py Replace assertRaisesRegexp with assertRaisesRegex 2017-06-03 13:27:37 +07:00
test_utils.py Move "functional" unit tests under block-device 2017-06-05 12:22:52 +10:00