Example #1
0
def test__has_regex__nonregex_string():
    nonregex_strings = get_permutations(nonregex + '.', 3)
    for stryng in nonregex_strings:
        assert has_regex(stryng) is False
Example #2
0
def test__has_regex__regex_string():
    regex_strings = get_permutations(REGEX_CHAR + '.', 3)
    for stryng in regex_strings:
        assert has_regex(stryng) is True