def testExport(self):
        tmpfile = self.genTempFileName('pdf')

        self.assertTrue(self.schema.export('Canvas 1', tmpfile))
        chksum = omnigraffle_export.checksum(tmpfile)

        self.assertFalse(self.schema.export('Canvas 1', tmpfile))
        self.assertEqual(chksum, omnigraffle_export.checksum(tmpfile))

        self.files_to_remove.append(tmpfile)
    def testExportWithForceOption(self):
        tmpfile = self.genTempFileName('pdf')

        self.assertTrue(self.schema.export('Canvas 1', tmpfile))
        chksum = omnigraffle_export.checksum(tmpfile)
        time.sleep(2)

        self.assertTrue(self.schema.export('Canvas 1', tmpfile, force=True))
        self.assertNotEqual(chksum, omnigraffle_export.checksum(tmpfile))

        self.files_to_remove.append(tmpfile)