```python
with ExcelFile(book) as reader:
    result = reader.parse("SheetA")
    tm.assert_frame_equal(df, result)
# add a test that shows whether or not ExcelFile should be close the book or not
```

Also, I suggest doing this test twice, once with `ExcelFile` and once with `read_excel` (which won't work as a contextmanager)