Created subclass unittest.TestCase for partition-table test

Please review it
Thanks
These two tests have a fair amount of common code. You can refactor it out by creating a `setUp` method. Make sure to call `super` at the beginning of the method.