Beispiel #1
0
 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")
Beispiel #2
0
 def test_managed_cppalg_isinstance_of_AlgorithmProxy(self):
     alg = algorithm_mgr.create("ConvertUnits")
     self.assertTrue(isinstance(alg, AlgorithmProxy))
Beispiel #3
0
 def test_created_alg_isinstance_of_IAlgorithm(self):
     alg = algorithm_mgr.create("ConvertUnits")
     self.assertTrue(isinstance(alg, IAlgorithm))