def METHOD_NAME(self, mock_os_walk):
    """test_get_system_modalias."""
    mock_os_walk.return_value = [
        ("/sys/devices/pci0000:00/0000:00:14.0/usb2/2-0:1.0/modalias",
         ["driver", "subsystem"],
         ["modalias", "uevent"]),
    ]
    """fetch hw_modaliases from machine and check modalis types."""
    modaliases = dkms_info.get_system_modaliases()
    self.assertEqual(len(modaliases), 1)
    self.assertIn("usb", modaliases)