def METHOD_NAME(self, tmpdir):
    """Open a text file as a path then buffer for reading."""
    path = str(tmpdir / 'test.txt')
    with open(path, 'wt') as f_write:
        f_write.write('foo\nbar\n')
    with augur.io.file.open_file(path) as f_read:
        with augur.io.file.open_file(f_read) as f_read:
            assert f_read.read() == 'foo\nbar\n'