class TestVimdownLexer(unittest.TestCase): def setUp(self): """@todo: Docstring for setUp :returns: @todo """ self.lexer = Lexer(vimdown.parser.vim_rules, case_sensitive=True, omit_whitespace=False, ) #setUp() def test_simple_token_comment(self): """@todo: Docstring for simple_token_comment :returns: @todo """ in_str = ("\"comment line 1\n" " \"comment line 2") res = [] for token in self.lexer.scan(in_str): self.assertEqual(vimdown.parser.Parser.COMMENT, token[0]) res.append(token) #test_simple_token_comment() def test_simple_token_code(self): """@todo: Docstring for simple_token_code :returns: @todo """ pass
def setUp(self): """@todo: Docstring for setUp :returns: @todo """ self.lexer = Lexer(vimdown.parser.vim_rules, case_sensitive=True, omit_whitespace=False, )