Simple functionality tests.
| 3 | |
| 4 | |
| 5 | class 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()) |
nothing calls this directly
no outgoing calls
no test coverage detected