Esempio n. 1
0
 def test_lines_of_buffers_become_one_sequence(self):
     with self._mock_out_search_order([
             "a b c".split(),
             "one".split(),
             "x y z".split(),
     ]):
         actual_result = list(localcomplete.generate_all_buffer_lines())
     self.assertEqual(actual_result, "a b c one x y z".split())
 def test_lines_of_buffers_become_one_sequence(self):
     with self._mock_out_search_order([
             "a b c".split(),
             "one".split(),
             "x y z".split(),
             ]):
         actual_result = list(localcomplete.generate_all_buffer_lines())
     self.assertEqual(actual_result, "a b c one x y z".split())
 def test_current_buffer_in_the_middle(self):
     with self._mock_out_vim_buffers([
             "a b c".split(),
             "one".split(),
             "x y z".split(),
             ],
             search_order=[1,0,2]):
         actual_result = list(localcomplete.generate_all_buffer_lines())
     self.assertEqual(actual_result, "one a b c x y z".split())