tests.test_parsing
Test parsing values that happen to be synthesized from other values
such that they need to be parsed.
-
class tests.test_parsing.TestDMUUID
Bases: object
Test that DM_UUID are all parsed into two parts.
-
d = Device(u'/sys/devices/virtual/workqueue/writeback')
-
test_exceptions()
The only bad UUID is one with an empty subsystem, anything else should
look good.
-
test_parsing_dm_uuid()
Test that both values are obtained and subsystem is non-empty.
-
class tests.test_parsing.TestDevlinks
Bases: object
Test Devlinks methods.
-
d = Device(u'/sys/devices/virtual/workqueue/writeback')
-
test_devlinks()
Verify that device links are in “by-.*” categories or no category.
-
class tests.test_parsing.TestIDPATH
Bases: object
Test parsing ID_PATH values.
-
d = Device(u'/sys/devices/virtual/workqueue/writeback')
-
test_failure()
Test at least one failure.
-
test_parsing()
Test that parsing is satisfactory on all examples.
-
test_parsing_sas_path()
Test that parsing is satisfactory on all examples.
-
class tests.test_parsing.TestPCIAddress
Bases: object
Test parsing a PCI address object.
-
d = Device(u'/sys/devices/virtual/workqueue/writeback')
-
testExceptions()
Test exception.
-
test_parsing_pci()
Test correct parsing of pci-addresses.