from PyObjCTools.TestSupport import TestCase, min_os_level
import Vision


class TestVNGenerateOpticalFlowRequest(TestCase):
    def testConstants(self):
        self.assertEqual(Vision.VNGenerateOpticalFlowRequestComputationAccuracyLow, 0)
        self.assertEqual(
            Vision.VNGenerateOpticalFlowRequestComputationAccuracyMedium, 1
        )
        self.assertEqual(Vision.VNGenerateOpticalFlowRequestComputationAccuracyHigh, 2)
        self.assertEqual(
            Vision.VNGenerateOpticalFlowRequestComputationAccuracyVeryHigh, 3
        )

    @min_os_level("11.0")
    def testConstants11_0(self):
        self.assertEqual(Vision.VNGenerateOpticalFlowRequestRevision1, 1)
