summaryrefslogtreecommitdiffstats
path: root/tests/helpers.py
blob: 8cf20695f36ef459523476458bb2381b8e2b00e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
import re


def formatted_text_rematch(value_to_test, expected_formatted_text):
    """
    ``expected_formatted_text`` can be regex.
    """
    for value, expected in zip(value_to_test, expected_formatted_text):
        assert value[0] == expected[0]
        print(expected[1], value[1])
        assert re.match(expected[1], value[1])