(lines, pattern, expected)
| 332 | |
| 333 | |
| 334 | def __match_count_is(lines, pattern, expected): |
| 335 | count = 0 |
| 336 | for x in lines: |
| 337 | if re.search(pattern, x): |
| 338 | count += 1 |
| 339 | if count > expected: |
| 340 | return False |
| 341 | return count == expected |
| 342 | |
| 343 | |
| 344 | def __write_appender(t, name): |