eorg/tests/test_regex.py

20 lines
381 B
Python

import os
import re
import pytest
from eorg import const
from eorg.parser import parse
from eorg.generate import html
def test_example():
text="#+BEGIN_EXAMPLE"
rx = const.t_EXAMPLE_BEGIN
match = re.search(rx, text)
assert match is not None
text="#+BEGIN_EXAMPLE "
rx = const.t_EXAMPLE_BEGIN
match = re.search(rx, text)
assert match is not None