## Sardana is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU Lesser General Public License for more details. ## ## You should have received a copy of the GNU Lesser General Public License ## along with Sardana. If not, see <http://www.gnu.org/licenses/>. ## ############################################################################## """Tests for expert macros""" from taurus.external import unittest from sardana.macroserver.macros.test import RunMacroTestCase, testRun, getCTs,\ getControllers CTRL_NAME1 = getControllers()[0] CT_NAME1, CT_NAME2 = getCTs()[:2] class ExpertTest(RunMacroTestCase, unittest.TestCase): """Test case for some of the expert macros. """ def test_expert(self): CTRL_NAME = "unittestmotctrl01" MOT_NAME1 = "unittestmot01" MOT_NAME2 = "unittestmot02" try: self.macro_runs(macro_name="defctrl", macro_params=["DummyMotorController", CTRL_NAME], wait_timeout=1) self.macro_runs(macro_name="defm",
## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU Lesser General Public License for more details. ## ## You should have received a copy of the GNU Lesser General Public License ## along with Sardana. If not, see <http://www.gnu.org/licenses/>. ## ############################################################################## """Tests for expert macros""" from taurus.external import unittest from sardana.macroserver.macros.test import RunMacroTestCase, testRun, getCTs,\ getControllers CTRL_NAME1 = getControllers()[0] CT_NAME1, CT_NAME2 = getCTs()[:2] class ExpertTest(RunMacroTestCase, unittest.TestCase): """Test case for some of the expert macros. """ def test_expert(self): CTRL_NAME = "unittestmotctrl01" MOT_NAME1 = "unittestmot01" MOT_NAME2 = "unittestmot02" try: self.macro_runs(macro_name="defctrl", macro_params=["DummyMotorController", CTRL_NAME], wait_timeout=1) self.macro_runs(macro_name="defm", macro_params=[MOT_NAME1, CTRL_NAME, "1"],