def test_lexer_first_angle_canceled(): lexer = Lexer(text='<{!>}>') assert list(lexer) == ['<', '{', '}', '>']
def test_lexer_second_admonition_canceled(): lexer = Lexer(text='<!!>') assert list(lexer) == ['<', '>']
def test_lexer(): lexer = Lexer(text='<<<<>') assert list(lexer) == ['<', '<', '<', '<', '>']