

def testCanParseWithErrors(self):
    parser = cmd_line.CommandLineParser('10$foo')
    rv = parser.parse_cmd_line()
    expected = dict(range=None, commands=[], errors=['E492 Not an editor command.'])
    self.assertEqual(rv, expected)

dataset/ETHPy150Open SublimeText/VintageEx/vex/parsers/test_cmdline.py TestCaseCommandLineParser.testCanParseWithErrors/original