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)
예제 #3
0
 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)
예제 #4
0
    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)