def _run(self):
cmd = self.read_command()<EOL>if cmd["<STR_LIT>"] == "<STR_LIT>":<EOL><INDENT>self.next_tuple()<EOL><DEDENT>elif cmd["<STR_LIT>"] == "<STR_LIT>":<EOL><INDENT>self.ack(cmd["<STR_LIT:id>"])<EOL><DEDENT>elif cmd["<STR_LIT>"] == "<STR_LIT>":<EOL><INDENT>self.fail(cmd["<STR_LIT:id>"])<EOL><DEDENT>elif cmd["<STR_LIT>"] == "<STR_LIT>":<EOL><INDENT>self.activate()<EOL><DEDENT>elif cmd["<STR_LIT>"] == "<STR_LIT>":<EOL><INDENT>self.deactivate()<EOL><DEDENT>else:<EOL><INDENT>self.logger.error("<STR_LIT>", cmd)<EOL><DEDENT>self.send_message({"<STR_LIT>": "<STR_LIT>"})<EOL>
The inside of ``run``'s infinite loop.

        Separated out so it can be properly unit tested.