def test_basic(self, get_disk_labels, check_output): """get_deviceinfo: parses DeviceInfo from blkid etc.""" disks = get_deviceinfo() self.assertEqual(len(disks), 4) disks.sort(key=lambda d: d.device) loop, efi, boot, root = disks self.assertEqual(vars(boot), vars(devicelist[0])) self.assertEqual(vars(efi), vars(devicelist[1])) self.assertEqual(vars(root), vars(devicelist[2])) self.assertEqual(vars(loop), vars(devicelist[3]))
def test_basic(self, get_disk_labels, check_output): """get_deviceinfo: parses DeviceInfo from blkid etc.""" disks = get_deviceinfo() assert len(disks) == 4 disks.sort(key=lambda d: d.device) loop, efi, boot, root = disks assert vars(boot) == vars(devicelist[0]) assert vars(efi) == vars(devicelist[1]) assert vars(root) == vars(devicelist[2]) assert vars(loop) == vars(devicelist[3])