def test_create_default_version(self): try: alg = algorithm_mgr.create("ConvertUnits") except RuntimeError: self.fail(str(exc)) # Tests self.assertNotEqual(alg, None) self.assertEquals(alg.name(), "ConvertUnits") self.assertEquals(alg.version(), 1) self.assertEquals(alg.category(), "Units")
def test_managed_cppalg_isinstance_of_AlgorithmProxy(self): alg = algorithm_mgr.create("ConvertUnits") self.assertTrue(isinstance(alg, AlgorithmProxy))
def test_created_alg_isinstance_of_IAlgorithm(self): alg = algorithm_mgr.create("ConvertUnits") self.assertTrue(isinstance(alg, IAlgorithm))