call site 9 for path.svnwc.ensure
path/svn/testing/test_wccommand.py - line 246
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
   def test_lock_unlock(self):
       root = self.root
       somefile = root.join('somefile')
->     somefile.ensure(file=True)
       # not yet added to repo
       py.test.raises(py.process.cmdexec.Error, 'somefile.lock()')
       somefile.write('foo')
       somefile.commit('test')
       assert somefile.check(versioned=True)
       somefile.lock()
       try:
           locked = root.status().locked
           assert len(locked) == 1
           assert normpath(str(locked[0])) == normpath(str(somefile))
           #assert somefile.locked()
           py.test.raises(Exception, 'somefile.lock()')
       finally:
           somefile.unlock()
       #assert not somefile.locked()
       locked = root.status().locked
       assert locked == []
       py.test.raises(Exception, 'somefile,unlock()')
       somefile.remove()