

def testCanParseBangCommandWithRange(self):
    parser = cmd_line.CommandLineParser('.!')
    rv = parser.parse_cmd_line()
    expected_range = cmd_line.default_range_info.copy()
    expected_range['text_range'] = '.'
    expected_range['left_ref'] = '.'
    expected = dict(range=expected_range, commands=[{
        'cmd': '!',
        'args': '',
        'forced': False,
    }], errors=[])
    self.assertEqual(rv, expected)

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