qcodes/tests/test_autoloadable_channels.py
def send(self, cmd: str) -> Any:
        """
        Instead of sending a string to the Visa backend, we use this function
        as a mock
        """
        keys = self._command_dict.keys()
        ans = None
        key = ""
        for key in keys:
            ans = re.match(key, cmd)
            if ans is not None:
                break

        if ans is None:
            raise ValueError(f"Command {cmd} unknown")

        args = ans.groups()
        return self._command_dict[key](*args)

        Instead of sending a string to the Visa backend, we use this function
        as a mock
        
Instead of sending a string to the Visa backend, we use this function
as a mock
Instead of sending a string to the Visa backend we use this function as a mock
def send(self, cmd: str) -> Any:
        keys = self._command_dict.keys()
        ans = None
        key = ""
        for key in keys:
            ans = re.match(key, cmd)
            if ans is not None:
                break
        if ans is None:
            raise ValueError(f"Command {cmd} unknown")
        args = ans.groups()
        return self._command_dict[key](*args)
def send ( self , cmd : str ) -> Any : keys = self . _command_dict . keys ( ) ans = None key = "" for key in keys : ans = re . match ( key , cmd ) if ans is not None : break if ans is None : raise ValueError ( f"Command {cmd} unknown" ) args = ans . groups ( ) return self . _command_dict [ key ] ( * args )
Instead of sending a string to the Visa backend, we use this function
as a mock
Instead of sending a string to the Visa backend we use this function as a mock
"""
        Instead of sending a string to the Visa backend, we use this function
        as a mock
        """
self
cmd
str