예제 #1
0
    def testStructs(self):
        v = DiscRecordingUI.DREraseSessionSetupDialogOptions()
        self.assertEqual(v.version, 0)
        self.assertEqual(v.dialogOptionFlags, 0)

        v = DiscRecordingUI.DREraseSessionProgressDialogOptions()
        self.assertEqual(v.version, 0)
        self.assertEqual(v.dialogOptionFlags, 0)
        self.assertEqual(v.description, None)
예제 #2
0
    def testStructs(self):
        v = DiscRecordingUI.DRBurnSessionSetupDialogOptions()
        self.assertEqual(v.version, 0)
        self.assertEqual(v.dialogOptionFlags, 0)
        self.assertEqual(v.defaultButtonTitle, None)

        v = DiscRecordingUI.DRBurnSessionProgressDialogOptions()
        self.assertEqual(v.version, 0)
        self.assertEqual(v.dialogOptionFlags, 0)
        self.assertEqual(v.description, None)
예제 #3
0
    def testFunctions(self):
        self.assertIsInstance(DiscRecordingUI.DREraseSessionGetTypeID(), (int, long))

        self.assertResultIsCFRetained(DiscRecordingUI.DREraseSessionCreate)

        DiscRecordingUI.DREraseSessionSetErase
        DiscRecordingUI.DREraseSessionGetErase

        self.assertArgIsIn(DiscRecordingUI.DREraseSessionSetupDialog, 1)
        self.assertArgIsIn(DiscRecordingUI.DREraseSessionSetupDialog, 2)

        self.assertArgIsIn(DiscRecordingUI.DREraseSessionBeginProgressDialog, 1)
        self.assertArgIsIn(DiscRecordingUI.DREraseSessionBeginProgressDialog, 2)
예제 #4
0
    def testFunctions(self):
        self.assertIsInstance(DiscRecordingUI.DRBurnSessionGetTypeID(), int)

        self.assertResultIsCFRetained(DiscRecordingUI.DRBurnSessionCreate)

        DiscRecordingUI.DRBurnSessionSetBurn
        DiscRecordingUI.DRBurnSessionGetBurn

        # XXX: Manual bindings
        self.assertArgIsIn(DiscRecordingUI.DRBurnSessionSetupDialog, 1)
        self.assertArgIsIn(DiscRecordingUI.DRBurnSessionSetupDialog, 2)

        # XXX: Manual bindings
        self.assertArgIsIn(DiscRecordingUI.DRBurnSessionBeginProgressDialog, 2)
        self.assertArgIsIn(DiscRecordingUI.DRBurnSessionBeginProgressDialog, 3)