tests.devices_test package¶
Submodules¶
tests.devices_test.dependencies_test module¶
-
class
tests.devices_test.dependencies_test.DeviceDependenciesTestCase(methodName='runTest')¶ Bases:
unittest.case.TestCaseTest external device dependencies.
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.
-
test_dependencies()¶
-
-
class
tests.devices_test.dependencies_test.MockingDeviceDependenciesTestCase1(methodName='runTest')¶ Bases:
unittest.case.TestCaseTest availability of external device dependencies.
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.
-
setUp()¶
-
test_availability_mdraidplugin()¶
-
-
class
tests.devices_test.dependencies_test.MockingDeviceDependenciesTestCase2(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_dependencies_handling()¶
-
tests.devices_test.device_methods_test module¶
tests.devices_test.device_names_test module¶
tests.devices_test.device_packages_test module¶
-
class
tests.devices_test.device_packages_test.DevicePackagesTestCase(methodName='runTest')¶ Bases:
unittest.case.TestCaseTest device name validation
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.
-
test_packages()¶
-
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¶
-
class
tests.devices_test.md_test.MDRaidArrayDeviceTest(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_chunk_size1()¶
-
test_chunk_size2()¶
-
tests.devices_test.network_test module¶
-
class
tests.devices_test.network_test.FakeNetDev(name, fmt=None, uuid=None, size=None, major=None, minor=None, sysfs_path='', parents=None, exists=False, serial=None, vendor='', model='', bus='')¶ Bases:
blivet.devices.storage.StorageDevice,blivet.devices.network.NetworkStorageDeviceParameters: - name (str) – the device name (generally a device node’s basename)
- exists (bool) – does this device exist?
- size (
Size) – the device’s size - parents (list of
StorageDevice) – a list of parent devices - fmt (
DeviceFormator a subclass of it) – this device’s formatting - uuid (str) – universally unique identifier (device – not fs)
- sysfs_path (str) – sysfs device path
- major (int) – the device major
- minor (int) – the device minor
- serial (str) – the ID_SERIAL_SHORT for this device
- vendor (str) – the manufacturer of this Device
- model (str) – manufacturer’s device model string
- bus (str) – the interconnect this device uses
-
class
tests.devices_test.network_test.NetDevMountOptionTestCase(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_net_dev_setting()¶ Verify netdev mount option setting after format assignment.
-
test_net_dev_update()¶ Verify netdev mount option setting after device creation.
-
tests.devices_test.partition_test module¶
tests.devices_test.size_test module¶
-
class
tests.devices_test.size_test.StorageDeviceSizeTest(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_size_getter()¶
-
test_size_setter()¶
-