def METHOD_NAME(self):
    disk = MagicMock(type="disk", children=[], is_disk=True, format=MagicMock(type=None))
    free = FreeSpaceDevice(free_size=Size("8 GiB"), dev_id=0, start=0, end=1, parents=[disk])
    self.assertEqual(free.protected, disk.protected)