def test_indent_heading_end(self): # test first heading vim.current.window.cursor = (5, 0) vim.EVALRESULTS[u'v:lnum'.encode(u'utf-8')] = u'5'.encode(u'utf-8') indent_orgmode() self.assertEqual(len(vim.CMDHISTORY), 1) self.assertEqual(vim.CMDHISTORY[-1], u'let b:indent_level = 2'.encode(u'utf-8'))
def test_indent_heading(self): # test first heading vim.current.window.cursor = (2, 0) vim.EVALRESULTS[u'v:lnum'.encode(u'utf-8')] = u'2'.encode(u'utf-8') indent_orgmode() self.assertEqual(len(vim.CMDHISTORY), 0)