def test_context_manager():
    with open() as vim:
        assert isinstance(vim, Vim)
        assert vim.is_alive()
    assert not vim.is_alive()
Esempio n. 2
0
 def setUp(self):
     env = dict(os.environ, LANG='C')
     self.vim = headlessvim.open(env=env)
     self.vim.install_plugin(os.getcwd(), 'plugin/betterga.vim')
     self.vim.send_keys('ia\033')
def unterminated_vim(request, env):
    return open(env=env)