def testExport(self):
        schema = omnigraffle.OmniGraffle().open(self.path)

        tmpfile = self.genTempFileName('pdf')

        self.assertTrue(omnigraffle_export.export_one(schema, tmpfile, 'Canvas 1'))

        self.assertFalse(omnigraffle_export.export_one(schema, tmpfile, 'Canvas 1'))

        self.files_to_remove.append(tmpfile)
    def testExport(self):
        schema = omnigraffle.OmniGraffle().open(self.path)
        
        tmpfile = self.genTempFileName('pdf')

        self.assertTrue(omnigraffle_export.export_one(schema, tmpfile, 'Canvas 1'))

        self.assertFalse(omnigraffle_export.export_one(schema, tmpfile, 'Canvas 1'))

        self.files_to_remove.append(tmpfile)
    def testExportWithForceOption(self):
        schema = omnigraffle.OmniGraffle().open(self.path)

        tmpfile = self.genTempFileName('pdf')

        self.assertTrue(omnigraffle_export.export_one(schema, tmpfile, 'Canvas 1'))
        time.sleep(2)

        self.assertTrue(omnigraffle_export.export_one(schema, tmpfile, 'Canvas 1', force=True))

        self.files_to_remove.append(tmpfile)
    def testExportWithForceOption(self):
        schema = omnigraffle.OmniGraffle().open(self.path)

        tmpfile = self.genTempFileName('pdf')

        self.assertTrue(omnigraffle_export.export_one(schema, tmpfile, 'Canvas 1'))
        time.sleep(2)

        self.assertTrue(omnigraffle_export.export_one(schema, tmpfile, 'Canvas 1', force=True))

        self.files_to_remove.append(tmpfile)