()
| 690 | |
| 691 | |
| 692 | def test_read_text(): |
| 693 | with filetexts({"a1.log": "A\nB", "a2.log": "C\nD"}) as fns: |
| 694 | assert {line.strip() for line in db.read_text(fns)} == set("ABCD") |
| 695 | assert {line.strip() for line in db.read_text("a*.log")} == set("ABCD") |
| 696 | |
| 697 | pytest.raises(ValueError, lambda: db.read_text("non-existent-*-path")) |
| 698 | |
| 699 | |
| 700 | def test_read_text_large(): |