예제 #1
0
    def test_value_method_returns_an_algorithm_type(self):
        prop = AlgorithmProperty("TestProperty")
        prop.valueAsStr = '{"name":"CreateWorkspace","paramters":{"OutputWorkspace":"ws","DataY":"1","DataX":"1","NSpec":"1"}}'

        alg = prop.value
        self.assertTrue(isinstance(alg,IAlgorithm))
        self.assertEquals("CreateWorkspace",alg.name())
예제 #2
0
    def test_value_method_returns_an_algorithm_type(self):
        prop = AlgorithmProperty("TestProperty")
        prop.valueAsStr = 'CreateWorkspace(OutputWorkspace="ws",DataY="1",DataX="1",NSpec=1'

        alg = prop.value
        self.assertTrue(isinstance(alg, IAlgorithm))
        self.assertEquals("CreateWorkspace", alg.name())
예제 #3
0
 def test_value_method_returns_an_algorithm_type(self):
     prop = AlgorithmProperty("TestProperty")
     prop.valueAsStr = 'CreateWorkspace(OutputWorkspace="ws",DataY="1",DataX="1",NSpec=1'
     
     alg = prop.value
     self.assertTrue(isinstance(alg,IAlgorithm))
     self.assertEquals("CreateWorkspace",alg.name())
예제 #4
0
    def test_value_method_returns_an_algorithm_type(self):
        prop = AlgorithmProperty("TestProperty")
        prop.valueAsStr = '{"name":"CreateWorkspace","paramters":{"OutputWorkspace":"ws","DataY":"1","DataX":"1","NSpec":"1"}}'

        alg = prop.value
        self.assertTrue(isinstance(alg,IAlgorithm))
        self.assertEquals("CreateWorkspace",alg.name())
예제 #5
0
 def test_value_method_returns_an_algorithm_type(self):
     # load plugins to register CreateWorkspace
     FrameworkManagerImpl.Instance()
     prop = AlgorithmProperty("TestProperty")
     prop.valueAsStr = '{"name": "CreateWorkspace",' \
                       '"parameters": {"OutputWorkspace": "ws", "DataY": "1", "DataX": "1","NSpec": "1"}}'
     alg = prop.value
     self.assertTrue(isinstance(alg, IAlgorithm))
     self.assertEqual("CreateWorkspace", alg.name())
예제 #6
0
 def test_value_method_returns_an_algorithm_type(self):
     # load plugins to register CreateWorkspace
     FrameworkManagerImpl.Instance()
     prop = AlgorithmProperty("TestProperty")
     prop.valueAsStr = '{"name": "CreateWorkspace",' \
                       '"parameters": {"OutputWorkspace": "ws", "DataY": "1", "DataX": "1","NSpec": "1"}}'
     alg = prop.value
     self.assertTrue(isinstance(alg, IAlgorithm))
     self.assertEqual("CreateWorkspace", alg.name())