How to verify GPT partition table of the disk
How to validate a disk volume using a Python script and how to create a test to verify that the approach is working.
I think we can:
Create sample disk with Linux tools
Format it with partition
Check with our script
truncate disk
The script should work, but exit with some error