(fileobj)
| 65 | |
| 66 | |
| 67 | def test_parse_regex_pattern(fileobj): |
| 68 | regex = re.compile(r"(?P<maj>[a-z]*![a-z]*)", flags=re.I) |
| 69 | result, *_ = list(logger.parse(fileobj, regex)) |
| 70 | assert result == dict(maj="ABC!DEF") |
| 71 | |
| 72 | |
| 73 | def test_parse_multiline_pattern(fileobj): |