def mbr_toooffset(self):
        self.logger.info("Trying to make a partition starting beyond 2Tb")

        pt = mbr()
        pt.addPartition(1, 1*1024*1024, 0x83)
        pt.addPartition(2, int(1.5*1024*1024), 0x83)
        self.assertRaises(PartitionTooLarge, pt.addPartition, 3, 64*1024, 0x83)
    def mbr_empty(self):
        self.logger.info("Testing the creation of an empty mbr mbr partition table")

        testfile = "/tmp/mbr_empty.img"

        pt = mbr()
        pt.makeDisk(testfile)

        self.logger.info("Review the result with another paritioning tool to confirm the result")
    def mbr_1part(self):
        self.logger.info("Testing the creation of an mbr mbr partition table with one partition")

        testfile = "/tmp/mbr_1part.img"

        pt = mbr()
        pt.addPartition(1, 8, 0x83, flags=["bootable"])
        pt.makeDisk(testfile)

        self.logger.info("Review the result with another paritioning tool to confirm the result")
    def mbr_toolarge(self):
        self.logger.info("Trying to make a 3Tb partition")

        pt = mbr()
        self.assertRaises(PartitionTooLarge, pt.addPartition, 1, 3*1024*1024, 0x83)