call site 6 for path.local.ensure
apigen/rest/testing/test_rest.py - line 95
93
94
95
96
97
98
99
100
   def test_write_section(self):
       tempdir = temppath.ensure('dirwriter', dir=True)
->     dw = self.get_filled_writer(DirWriter, tempdir)
       fpaths = tempdir.listdir('*.txt')
       assert len(fpaths) == 2
       assert sorted([f.basename for f in fpaths]) == ['bar.txt', 'foo.txt']
       assert _nl(tempdir.join('foo.txt').read()) == 'foo data\n'
       assert _nl(tempdir.join('bar.txt').read()) == 'bar data\n'
apigen/rest/testing/test_rest.py - line 89
86
87
88
89
90
   def get_filled_writer(self, writerclass, *args, **kwargs):
       dw = writerclass(*args, **kwargs)
       dw.write_section('foo', Rest(Paragraph('foo data')))
->     dw.write_section('bar', Rest(Paragraph('bar data')))
       return dw
apigen/rest/genrest.py - line 127
125
126
127
   def write_section(self, name, rest):
       filename = '%s.txt' % (name,)
->     self.directory.ensure(filename).write(rest.text())