MCPcopy Create free account
hub / github.com/opencv/opencv-python / OpenCVTest

Class OpenCVTest

tests/test.py:5–17  ·  view source on GitHub ↗

Simple functionality tests.

Source from the content-addressed store, hash-verified

3
4
5class OpenCVTest(unittest.TestCase):
6 """ Simple functionality tests. """
7
8 def test_import(self):
9 """ Test that the cv2 module can be imported. """
10 import cv2
11
12 def test_video_capture(self):
13
14 import cv2
15
16 cap = cv2.VideoCapture("SampleVideo_1280x720_1mb.mp4")
17 self.assertTrue(cap.isOpened())

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected