call site 2 for path.local.open
apigen/rest/testing/test_rest.py - line 143
137
138
139
140
141
142
143
   def test_write_section(self):
       tempdir = temppath.ensure('htmldirwriter', dir=1)
       hdw = self.get_filled_writer(HTMLDirWriter, HTMLHandler, HTMLHandler,
                                    tempdir)
       assert tempdir.join('foo.html').check(file=1)
       assert tempdir.join('bar.html').check(file=1)
->     assert tempdir.join('foo.html').read().startswith('<html>')
path/common.py - line 335
329
330
331
332
333
334
335
336
337
338
339
   def read(self, mode='rb'):
       """ read and return a bytestring from reading the path. """
       if py.std.sys.version_info < (2,3):
           for x in 'u', 'U':
               if x in mode:
                   mode = mode.replace(x, '')
->     f = self.open(mode)
       try:
           return f.read()
       finally:
           f.close()