Remove some extra imports.

Signed-off-by: mulhern <amulhern@redhat.com>
Update BTRFS initializer comments for level type.

Signed-off-by: mulhern <amulhern@redhat.com>
Explicitly accept a string as well as a RAIDLevel object.

This aligns this choice with the equivalent for mdraid.mdcreate.

Signed-off-by: mulhern <amulhern@redhat.com>
Move skipUnless decorator to the top level class of skipped classes.

Simpler than to distribute the decorator uses all over the base classes.

Signed-off-by: mulhern <amulhern@redhat.com>
Add num_blocks parameter to makeLoopDev().

Signed-off-by: mulhern <amulhern@redhat.com>
Use correct parameters in __init__() in subclasses of unittest.TestCase.

Can get away with using *args, **kwargs, but it is not helpful.

Signed-off-by: mulhern <amulhern@redhat.com>
Make DevicelibsTestCase devices configurable.

Allow choosing size of backing file. Do not use the path of the backing
file in all subclasses in previous strange way, since it is irrelevant
to all the subclasses, and only relevant to DevicelibsTestCase which has
to do the necessary cleanup. Use a new attribute, loopDevices, to store
the actual loopDevices, which are what is required by the subclasses.
Fix up the subclasses to use this attribute appropriately. Change directory
of backing file to /var/tmp instead of /tmp.

Signed-off-by: mulhern <amulhern@redhat.com>