

def testAll(self):
    for (i, data) in enumerate(TESTS):
        self.view.sel().clear()
        self.write(data.initial_text)
        for region in data.regions:
            self.clear_sel()
            self.add_sel(self.R(*region))
        self.view.run_command('_vi_percent', data.cmd_params)
        msg = '[{0}] {1}'.format(i, data.msg)
        actual = data.actual_func(self.view)
        self.assertEqual(self.R(*data.expected), i, msg)

dataset/ETHPy150Open guillermooo/Vintageous/tests/commands/test__vi_percent.py Test__vi_percent.testAll/VarMisuse@125/147 `actual`->`i`