@staticmethod
    def from_text(text, file_name, test_nr):
        ''' creates a test instance from a textual representation
        '''
        header, body = text.split(TEST_HEADER_DELIM, 1)
        header, description = header.split('\n', 1)
        description, options = ViCmdTest.process_description(description)
        cmd_name, args = header.split(' ', 1)
        args = _make_args(args.split())
        assert args in 'mode', 'all commands need to know the current mode'
        before, after = body.split(TEST_RESULTS_DELIM)
        return ViCmdTest(cmd_name, args, description, before, after,
            file_name, test_nr, options)
dataset/ETHPy150Open guillermooo/Vintageous/tests/cmd_tester.py/ViCmdTest.from_text/swapped operands of `in`