def _helper_completion_tests(self, byte_index_result, **isolation_args): with self._helper_isolate_sut(**isolation_args) as vim_mock: localcomplete.findstart_local_matches() expected_result = (localcomplete.VIM_COMMAND_FINDSTART % byte_index_result) vim_mock.command.assert_called_once_with(expected_result)
def test_findstart_result_command_called(self, vim_mock, byte_index): localcomplete.findstart_local_matches() vim_mock.command.assert_called_once_with( localcomplete.VIM_COMMAND_FINDSTART % byte_index)
def _helper_completion_tests(self, byte_index_result, **isolation_args): with self._helper_isolate_sut(**isolation_args) as vim_mock: localcomplete.findstart_local_matches() expected_result = localcomplete.VIM_COMMAND_FINDSTART % byte_index_result vim_mock.command.assert_called_once_with(expected_result)