Source code for rsrtx.Implementations.Mtest.Rename

from ...Internal.Core import Core
from ...Internal.CommandsGroup import CommandsGroup
from ...Internal.Types import DataType
from ...Internal.ArgSingleList import ArgSingleList
from ...Internal.ArgSingle import ArgSingle


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class RenameCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("rename", core, parent)

[docs] def set(self, mask_test_name: str, new_name: str) -> None: """ ``MTESt:REName`` \n Snippet: ``driver.mtest.rename.set(mask_test_name = 'abc', new_name = 'abc')`` \n Changes the name of the mask test. :param mask_test_name: String with the existing mask test name. :param new_name: String with the new mask test name. """ param = ArgSingleList().compose_cmd_string(ArgSingle('mask_test_name', mask_test_name, DataType.String), ArgSingle('new_name', new_name, DataType.String)) self._core.io.write(f'MTESt:REName {param}'.rstrip())