diskimage-builder/diskimage_builder/block_device
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
..
level0 Add state object, rename "results", add unit tests 2017-05-30 20:39:00 +10:00
level1 Add state object, rename "results", add unit tests 2017-05-30 20:39:00 +10:00
level2 Add state object, rename "results", add unit tests 2017-05-30 20:39:00 +10:00
level3 Refactor mount-point sorting 2017-05-31 11:05:50 +10:00
level4 Add state object, rename "results", add unit tests 2017-05-30 20:39:00 +10:00
tests Move "functional" unit tests under block-device 2017-06-05 12:22:52 +10:00
__init__.py Clear __init__.py from cmd move 2017-05-11 18:52:14 +10:00
blockdevice.py Make BlockDeviceState implement a dict 2017-05-31 11:24:55 +10:00
cmd.py Refactor: use lazy logging 2017-05-30 14:39:58 +10:00
config.py Refactor: use lazy logging 2017-05-30 14:39:58 +10:00
exception.py Move exception to it's own file (again) 2017-05-20 06:44:39 +00:00
plugin.py Add state object, rename "results", add unit tests 2017-05-30 20:39:00 +10:00
utils.py Refactor mount-point sorting 2017-05-31 11:05:50 +10:00