tests package¶
Subpackages¶
- tests.devicelibs_test package
- tests.devices_test package
- Submodules
- tests.devices_test.dependencies_test module
- tests.devices_test.device_methods_test module
- tests.devices_test.device_names_test module
- tests.devices_test.device_packages_test module
- tests.devices_test.device_properties_test module
- tests.devices_test.disk_test module
- tests.devices_test.lvm_test module
- tests.devices_test.md_test module
- tests.devices_test.network_test module
- tests.devices_test.partition_test module
- tests.devices_test.size_test module
- tests.devices_test.stratis_test module
- tests.devices_test.tags_test module
- Module contents
- tests.formats_test package
- Submodules
- tests.formats_test.device_test module
- tests.formats_test.disklabel_test module
- tests.formats_test.fs_test module
- tests.formats_test.fslabeling module
- tests.formats_test.fstesting module
- tests.formats_test.fsuuid module
- tests.formats_test.init_test module
- tests.formats_test.labeling_test module
- tests.formats_test.loopbackedtestcase module
- tests.formats_test.luks_test module
- tests.formats_test.lvmpv_test module
- tests.formats_test.methods_test module
- tests.formats_test.misc_test module
- tests.formats_test.selinux_test module
- tests.formats_test.swap_test module
- tests.formats_test.uuid_test module
- Module contents
- tests.tasks_test package
- tests.udev_data package
- tests.vmtests package
Submodules¶
tests.action_test module¶
tests.dbus_test module¶
- class tests.dbus_test.DBusActionTestCase(methodName='runTest')¶
Bases:
tests.dbus_test.DBusObjectTestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- setUp(*args)¶
Hook method for setting up the test fixture before exercising it.
- test_properties(*args)¶
- class tests.dbus_test.DBusBlivetTestCase(methodName='runTest')¶
Bases:
unittest.case.TestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- setUp(*args)¶
Hook method for setting up the test fixture before exercising it.
- test_Commit()¶
- test_Factory()¶
- test_InitializeDisk()¶
- test_ListDevices()¶
Verify that ListDevices returns what it should.
It should return a dbus.Array w/ signature ‘o’ containing the dbus object path of each device in the DBusBlivet.
- test_RemoveDevice()¶
- test_Reset()¶
Verify that Reset calls the underlying Blivet’s reset method.
- class tests.dbus_test.DBusDeviceTestCase(methodName='runTest')¶
Bases:
tests.dbus_test.DBusObjectTestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- setUp(*args)¶
Hook method for setting up the test fixture before exercising it.
- test_properties(*args)¶
- class tests.dbus_test.DBusFormatTestCase(methodName='runTest')¶
Bases:
tests.dbus_test.DBusObjectTestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- setUp(*args)¶
Hook method for setting up the test fixture before exercising it.
- test_properties(*args)¶
- class tests.dbus_test.DBusObjectTestCase(methodName='runTest')¶
Bases:
unittest.case.TestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- setUp(*args)¶
Hook method for setting up the test fixture before exercising it.
- test_properties(*args)¶
- tests.dbus_test.mock_dbus_device(obj_id)¶
tests.devicefactory_test module¶
- class tests.devicefactory_test.DeviceFactoryTestCase(methodName='runTest')¶
Bases:
unittest.case.TestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- device_class = None¶
device class to expect from devicefactory
- device_type = None¶
device type constant to pass to devicefactory.get_device_factory
- encryption_supported = True¶
whether encryption of this device type is supported by blivet
- factory_class = None¶
devicefactory class used in this test case
- setUp()¶
Hook method for setting up the test fixture before exercising it.
- test_default_factory_type()¶
- test_device_factory()¶
- test_factory_defaults(*args)¶
- test_get_free_disk_space(*args)¶
- test_normalize_size(*args)¶
- class tests.devicefactory_test.LVMFactoryTestCase(methodName='runTest')¶
Bases:
tests.devicefactory_test.DeviceFactoryTestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- device_class¶
- device_type = 0¶
device type constant to pass to devicefactory.get_device_factory
- factory_class¶
alias of
blivet.devicefactory.LVMFactory
- test_device_factory(*args)¶
- test_factory_defaults(*args)¶
- test_get_container(*args)¶
- test_get_free_disk_space(*args)¶
- test_lv_unique_name(*args)¶
- test_normalize_size(*args)¶
- class tests.devicefactory_test.LVMThinPFactoryTestCase(methodName='runTest')¶
Bases:
tests.devicefactory_test.LVMFactoryTestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- device_class¶
- device_type = 5¶
device type constant to pass to devicefactory.get_device_factory
- encryption_supported = False¶
whether encryption of this device type is supported by blivet
- factory_class¶
alias of
blivet.devicefactory.LVMThinPFactory
- class tests.devicefactory_test.LVMVDOFactoryTestCase(methodName='runTest')¶
Bases:
tests.devicefactory_test.LVMFactoryTestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- device_class¶
- device_type = 6¶
device type constant to pass to devicefactory.get_device_factory
- encryption_supported = False¶
whether encryption of this device type is supported by blivet
- factory_class¶
alias of
blivet.devicefactory.LVMVDOFactory
- test_device_factory(*args)¶
- test_factory_defaults(*args)¶
- test_get_free_disk_space(*args)¶
- test_lv_unique_name(*args)¶
- test_normalize_size(*args)¶
- class tests.devicefactory_test.MDFactoryTestCase(methodName='runTest')¶
Bases:
tests.devicefactory_test.DeviceFactoryTestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- device_class¶
alias of
blivet.devices.md.MDRaidArrayDevice
- device_type = 1¶
device type constant to pass to devicefactory.get_device_factory
- factory_class¶
alias of
blivet.devicefactory.MDFactory
- test_device_factory(*args)¶
- test_mdfactory(*args)¶
- class tests.devicefactory_test.PartitionFactoryTestCase(methodName='runTest')¶
Bases:
tests.devicefactory_test.DeviceFactoryTestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- device_class¶
- device_type = 2¶
device type constant to pass to devicefactory.get_device_factory
- factory_class¶
- test_bug1178884()¶
- class tests.devicefactory_test.StratisFactoryTestCase(methodName='runTest')¶
Bases:
tests.devicefactory_test.DeviceFactoryTestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- device_class¶
- device_type = 7¶
device type constant to pass to devicefactory.get_device_factory
- encryption_supported = False¶
whether encryption of this device type is supported by blivet
- factory_class¶
alias of
blivet.devicefactory.StratisFactory
- test_device_factory(*args)¶
- test_get_free_disk_space(*args)¶
- test_normalize_size(*args)¶
tests.devicetree_test module¶
- class tests.devicetree_test.DeviceTreeIgnoredExclusiveMultipathTestCase(methodName='runTest')¶
Bases:
unittest.case.TestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- setUp()¶
Hook method for setting up the test fixture before exercising it.
- test_exclusive_disks_multipath_1()¶
- test_exclusive_disks_multipath_2()¶
- test_exclusive_disks_multipath_3()¶
- test_ignored_disks_multipath_1()¶
- test_ignored_disks_multipath_2()¶
- test_ignored_disks_multipath_3()¶
- class tests.devicetree_test.DeviceTreeTestCase(methodName='runTest')¶
Bases:
unittest.case.TestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- test_add_device(*args)¶
- test_device_name()¶
- test_expand_taglist()¶
- test_get_device_by_name()¶
- test_hide_ignored_disks()¶
- test_ignored_disk_tags()¶
- test_lvm_filter_hide_unhide()¶
- test_recursive_remove()¶
- test_remove_device(*args)¶
- test_reset()¶
- test_resolve_device()¶
tests.events_test module¶
- class tests.events_test.EventManagerTest(methodName='runTest')¶
Bases:
unittest.case.TestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- testEventMask()¶
- class tests.events_test.FakeEventManager(handler_cb=None, notify_cb=None, error_cb=None)¶
Bases:
blivet.events.manager.EventManager- disable()¶
Disable monitoring and handling of events.
- enable()¶
Enable monitoring and handling of events.
- Raises
EventManagerErrorif no callback defined
- property enabled¶
tests.imagebackedtestcase module¶
- class tests.imagebackedtestcase.ImageBackedTestCase(methodName='runTest')¶
Bases:
unittest.case.TestCaseA class to encapsulate testing of blivet using block devices.
The basic idea is you create some scratch block devices and then run some test code on them.
disksdefines the set of disk images._set_up_storage()is where you specify the initial layout of the disks. It will be written to the disk images inset_up_storage().You then write test methods as usual that use the disk images, which will be cleaned up and removed when each test method finishes.
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- disks = {'disk1': Size (2 GiB), 'disk2': Size (2 GiB)}¶
The names and sizes of the disk images to create/use.
- initialize_disks = True¶
Whether or not to create a disklabel on the disks.
- setUp()¶
Do any setup required prior to running a test.
- set_up_disks()¶
Create disk image files to build the test’s storage on.
If you are actually creating the disk image files here don’t forget to set the initialize_disks flag so they get a fresh disklabel when clear_partitions gets called from create_storage later.
- set_up_storage()¶
Create a device stack on top of disk images for this test to run on.
This will write the configuration to whatever disk images are defined in set_up_disks.
tests.misc_test module¶
- class tests.misc_test.SortDevicesTest(methodName='runTest')¶
Bases:
unittest.case.TestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- test_sort_devices()¶
- class tests.misc_test.SuggestNameTestCase(methodName='runTest')¶
Bases:
unittest.case.TestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- test_suggest_container_name()¶
- test_suggest_device_name()¶
tests.parentlist_test module¶
- class tests.parentlist_test.ParentListTestCase(methodName='runTest')¶
Bases:
unittest.case.TestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- test_device_parents()¶
Verify that Device.parents functions as expected.
- test_parent_list()¶
tests.partitioning_test module¶
tests.populator_test module¶
- class tests.populator_test.AppleBootFormatPopulatorTestCase(methodName='runTest')¶
Bases:
tests.populator_test.BootFormatPopulatorTestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- helper_class¶
alias of
blivet.populator.helpers.boot.AppleBootFormatPopulator
- class tests.populator_test.BootFormatPopulatorTestCase(methodName='runTest')¶
Bases:
tests.populator_test.PopulatorHelperTestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- name_mismatch_ok = True¶
- test_get_helper(*args)¶
- test_match()¶
Test boot format populator helper match method
- class tests.populator_test.DMDevicePopulatorTestCase(methodName='runTest')¶
Bases:
tests.populator_test.PopulatorHelperTestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- helper_class¶
- test_get_helper(*args)¶
Test get_device_helper for dm devices.
- test_match(*args)¶
Test matching of dm device populator.
- test_run(*args)¶
Test dm device populator.
- class tests.populator_test.DiskDevicePopulatorTestCase(methodName='runTest')¶
Bases:
tests.populator_test.PopulatorHelperTestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- helper_class¶
- test_get_helper(*args)¶
Test get_device_helper for disks.
- test_match(*args)¶
Test matching of disk device populator.
- test_run(*args)¶
Test disk device populator.
- class tests.populator_test.DiskLabelPopulatorTestCase(methodName='runTest')¶
Bases:
tests.populator_test.PopulatorHelperTestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- helper_class¶
alias of
blivet.populator.helpers.disklabel.DiskLabelFormatPopulator
- test_get_helper(*args)¶
Test get_format_helper for disklabels.
- test_match(*args)¶
Test matching for disklabel format populator.
- class tests.populator_test.EFIFormatPopulatorTestCase(methodName='runTest')¶
Bases:
tests.populator_test.BootFormatPopulatorTestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- helper_class¶
- class tests.populator_test.Ext4PopulatorTestCase(methodName='runTest')¶
Bases:
tests.populator_test.FormatPopulatorTestCaseTest ext4 format populator.
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- blivet_type = 'ext4'¶
- udev_type = 'ext4'¶
- class tests.populator_test.FakePartedPart(partition, name)¶
Bases:
objectFake parted_partition for testing the parted partition name matching stuff. Has to provide size also.
- getLength(unit)¶
This is circular, but works okay.
- class tests.populator_test.FormatPopulatorTestCase(methodName='runTest')¶
Bases:
tests.populator_test.PopulatorHelperTestCaseFormat types that don’t require special handling use FormatPopulator.
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- blivet_type = None¶
- helper_class¶
alias of
blivet.populator.helpers.formatpopulator.FormatPopulator
- property helper_name¶
- test_get_helper(*args)¶
- test_match()¶
- test_run(*args)¶
- udev_type = None¶
- class tests.populator_test.HFSPopulatorTestCase(methodName='runTest')¶
Bases:
tests.populator_test.FormatPopulatorTestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- blivet_type = 'hfs'¶
- udev_type = 'hfs'¶
- class tests.populator_test.LVMDevicePopulatorTestCase(methodName='runTest')¶
Bases:
tests.populator_test.PopulatorHelperTestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- helper_class¶
- test_get_helper(*args)¶
Test get_device_helper for lvm devices.
- test_match(*args)¶
Test matching of lvm device populator.
- test_run(*args)¶
Test lvm device populator.
- class tests.populator_test.LVMFormatPopulatorTestCase(methodName='runTest')¶
Bases:
tests.populator_test.FormatPopulatorTestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- blivet_type = 'lvmpv'¶
- helper_class¶
- test_run(*args)¶
Test lvm format populator.
- udev_type = 'LVM2_member'¶
- class tests.populator_test.LoopDevicePopulatorTestCase(methodName='runTest')¶
Bases:
tests.populator_test.PopulatorHelperTestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- helper_class¶
- test_get_helper(*args)¶
Test get_device_helper for loop devices.
- test_match(*args)¶
Test matching of loop device populator.
- test_run(*args)¶
Test loop device populator.
- class tests.populator_test.MDDevicePopulatorTestCase(methodName='runTest')¶
Bases:
tests.populator_test.PopulatorHelperTestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- helper_class¶
- test_get_helper(*args)¶
Test get_device_helper for md arrays.
- test_match(*args)¶
Test matching of md device populator.
- test_run(*args)¶
Test md device populator.
- class tests.populator_test.MDFormatPopulatorTestCase(methodName='runTest')¶
Bases:
tests.populator_test.FormatPopulatorTestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- blivet_type = 'mdmember'¶
- helper_class¶
- test_run(*args)¶
Test md format populator.
- udev_type = 'linux_raid_member'¶
- class tests.populator_test.MacEFIFormatPopulatorTestCase(methodName='runTest')¶
Bases:
tests.populator_test.BootFormatPopulatorTestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- helper_class¶
alias of
blivet.populator.helpers.boot.MacEFIFormatPopulator
- name_mismatch_ok = False¶
- class tests.populator_test.MultipathDevicePopulatorTestCase(methodName='runTest')¶
Bases:
tests.populator_test.PopulatorHelperTestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- helper_class¶
alias of
blivet.populator.helpers.multipath.MultipathDevicePopulator
- match_auto_patches = ['blivet.udev.device_is_dm_mpath', 'blivet.udev.device_is_dm_partition']¶
- test_get_helper(*args)¶
Test get_device_helper for multipaths.
- test_match(*args)¶
Test matching of multipath device populator.
- test_run(*args)¶
Test multipath device populator.
- class tests.populator_test.NVDIMMNamespaceDevicePopulatorTestCase(methodName='runTest')¶
Bases:
tests.populator_test.PopulatorHelperTestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- helper_class¶
alias of
blivet.populator.helpers.disk.NVDIMMNamespaceDevicePopulator
- test_get_helper(*args)¶
Test get_device_helper for NVDIMM namespaces.
- test_match(*args)¶
Test matching of NVDIMM namespace device populator.
- test_run(*args)¶
Test disk device populator.
- class tests.populator_test.OpticalDevicePopulatorTestCase(methodName='runTest')¶
Bases:
tests.populator_test.PopulatorHelperTestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- helper_class¶
alias of
blivet.populator.helpers.optical.OpticalDevicePopulator
- test_get_helper(*args)¶
Test get_device_helper for optical devices.
- test_match(*args)¶
Test matching of optical device populator.
- test_run(*args)¶
Test optical device populator.
- class tests.populator_test.PartitionDevicePopulatorTestCase(methodName='runTest')¶
Bases:
tests.populator_test.PopulatorHelperTestCaseTest partition device populator match method
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- helper_class¶
alias of
blivet.populator.helpers.partition.PartitionDevicePopulator
- test_get_helper(*args)¶
Test get_device_helper for partitions.
- test_match(*args)¶
Test matching for partition device populator.
- test_run(*args)¶
Test partition device populator.
- class tests.populator_test.PopulatorHelperTestCase(methodName='runTest')¶
Bases:
unittest.case.TestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- helper_class = None¶
- class tests.populator_test.SwapPopulatorTestCase(methodName='runTest')¶
Bases:
tests.populator_test.FormatPopulatorTestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- blivet_type = 'swap'¶
- udev_type = 'swap'¶
- class tests.populator_test.VFATPopulatorTestCase(methodName='runTest')¶
Bases:
tests.populator_test.FormatPopulatorTestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- blivet_type = 'vfat'¶
- udev_type = 'vfat'¶
- class tests.populator_test.XFSPopulatorTestCase(methodName='runTest')¶
Bases:
tests.populator_test.FormatPopulatorTestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- blivet_type = 'xfs'¶
- udev_type = 'xfs'¶
tests.run_tests module¶
tests.size_test module¶
- class tests.size_test.SizeTestCase(methodName='runTest')¶
Bases:
unittest.case.TestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- test_convert_to_precision()¶
- test_convert_to_with_size()¶
- test_ensure_percent_reserve()¶
- test_exceptions()¶
- test_floating_point_str()¶
- test_human_readable()¶
- test_human_readable_fractional_quantities()¶
- test_leading_zero()¶
- test_no_units_in_string()¶
- test_partial_bytes()¶
- test_pickling()¶
- test_scientific_notation()¶
- test_segative()¶
- test_white_space()¶
- class tests.size_test.TranslationTestCase(methodName='runTest')¶
Bases:
unittest.case.TestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- setUp()¶
Hook method for setting up the test fixture before exercising it.
- test_human_readable_translation()¶
- test_round_to_nearest()¶
- test_translated()¶
tests.storagetestcase module¶
- class tests.storagetestcase.StorageTestCase(methodName='runTest')¶
Bases:
unittest.case.TestCaseThis is a base class for storage test cases. It sets up imports of the blivet package, along with an Anaconda instance and a Storage instance. There are lots of little patches to prevent various pieces of code from trying to access filesystems and/or devices on the host system, along with a couple of convenience methods.
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- destroy_all_devices(disks=None)¶
Remove all devices from the devicetree.
Keyword Arguments:
disks - a list of names of disks to remove partitions from
Note: this is largely ripped off from partitioning.clear_partitions.
- new_device(*args, **kwargs)¶
Return a new Device instance suitable for testing.
- new_format(*args, **kwargs)¶
Return a new DeviceFormat instance suitable for testing.
Keyword Arguments:
- device_instance - StorageDevice instance this format will be
created on. This is needed for setup of resizable formats.
All other arguments are passed directly to blivet.formats.get_format.
- schedule_create_device(device)¶
Schedule an action to create the specified device.
Verify that the device is not already in the tree and that the act of scheduling/registering the action also adds the device to the tree.
Return the DeviceAction instance.
- schedule_create_format(device, fmt)¶
Schedule an action to write a new format to a device.
Verify that the device is already in the tree, that it is not already set up to contain the specified format, and that the act of registering/scheduling the action causes the new format to be reflected in the tree.
Return the DeviceAction instance.
- schedule_destroy_device(device)¶
Schedule an action to destroy the specified device.
Verify that the device exists initially and that the act of scheduling/registering the action also removes the device from the tree.
Return the DeviceAction instance.
- schedule_destroy_format(device)¶
Schedule an action to remove a format from a device.
Verify that the device is already in the tree and that the act of registering/scheduling the action causes the new format to be reflected in the tree.
Return the DeviceAction instance.
- setUp()¶
Hook method for setting up the test fixture before exercising it.
tests.tsort_test module¶
tests.udev_test module¶
tests.unsupported_disklabel_test module¶
- class tests.unsupported_disklabel_test.UnsupportedDiskLabelTestCase(methodName='runTest')¶
Bases:
unittest.case.TestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- setUp()¶
Hook method for setting up the test fixture before exercising it.
- test_recursive_remove(*args)¶
- test_unsupported_disklabel()¶
Test behavior of partitions on unsupported disklabels.
tests.util_test module¶
- class tests.util_test.DependencyGuardTestCase(methodName='runTest')¶
Bases:
unittest.case.TestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- test_dependency_guard()¶
- class tests.util_test.GetKernelModuleParameterTestCase(methodName='runTest')¶
Bases:
unittest.case.TestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- test_get_kernel_module_parameter_value()¶
- test_nonexisting_kernel_module()¶
- class tests.util_test.GetSysfsAttrTestCase(methodName='runTest')¶
Bases:
unittest.case.TestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- test_get_sysfs_attr()¶
- class tests.util_test.MiscTest(methodName='runTest')¶
Bases:
unittest.case.TestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- long_message = True¶
- test_dedup_list()¶
- test_detect_virt()¶
- test_power_of_two()¶
- class tests.util_test.Test(s)¶
Bases:
object- property bad_news¶
- property good_news¶
- property hi¶
- property nok¶
- property ok¶
- property s¶
- say_hi()¶
- class tests.util_test.TestDefaultNamedtuple(methodName='runTest')¶
Bases:
unittest.case.TestCaseCreate an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- test_default_namedtuple()¶
- class tests.util_test.TestDependencyGuard(exn_cls=<class 'blivet.errors.DependencyError'>)¶
Bases:
blivet.util.DependencyGuard- error_msg = 'test dep not satisfied'¶