Exemplo n.º 1
0
 def test_find_extension(self):
     vim = mock.Mock()
     ret = vim_util.find_extension(vim, 'fake-key')
     self.assertIsNotNone(ret)
     service_content = vim.service_content
     vim.FindExtension.assert_called_once_with(
         service_content.extensionManager, extensionKey='fake-key')
Exemplo n.º 2
0
 def test_find_extension(self):
     vim = mock.Mock()
     ret = vim_util.find_extension(vim, 'fake-key')
     self.assertIsNotNone(ret)
     service_content = vim.service_content
     vim.client.service.FindExtension.assert_called_once_with(
         service_content.extensionManager, 'fake-key')