Patch unittests when calling _validate_device
Merge pull request #18844 from rallytime/fix_parted_tests

Patch unittests when calling _validate_device