From e94dfcee0d9826f614606f88791f46cd416ccd4f Mon Sep 17 00:00:00 2001 From: Maksim Shabunin Date: Thu, 26 Mar 2015 11:43:49 +0300 Subject: [PATCH] Add python test for inheritance structure generation --- modules/python/test/test.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/python/test/test.py b/modules/python/test/test.py index a0f0daa56c..093979abaf 100644 --- a/modules/python/test/test.py +++ b/modules/python/test/test.py @@ -145,6 +145,16 @@ class Hackathon244Tests(NewOpenCVTests): self.check_close_pairs(mc, mc0, 5) self.assertLessEqual(abs(mr - mr0), 5) + def test_inheritance(self): + bm = cv2.StereoBM_create() + bm.getPreFilterCap() # from StereoBM + bm.getBlockSize() # from SteroMatcher + + boost = cv2.ml.Boost_create() + boost.getBoostType() # from ml::Boost + boost.getMaxDepth() # from ml::DTrees + boost.isClassifier() # from ml::StatModel + if __name__ == '__main__': parser = argparse.ArgumentParser(description='run OpenCV python tests') parser.add_argument('--repo', help='use sample image files from local git repository (path to folder), '