~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_lockable_files.py

  • Committer: John Arbash Meinel
  • Date: 2006-01-03 21:23:43 UTC
  • mto: (1185.65.19 storage)
  • mto: This revision was merged to the branch mainline in revision 1550.
  • Revision ID: john@arbash-meinel.com-20060103212343-7d62a25f4a6e4ac8
Changed LockableFiles to take the root directory directly. Moved mode information into LockableFiles instead of Branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
        transport = get_transport('.')
28
28
        transport.mkdir('.bzr')
29
29
        transport.put('.bzr/my-lock', StringIO(''))
30
 
        self.lockable = LockableFiles(transport, '.bzr', 'my-lock')
 
30
        self.lockable = LockableFiles(transport.clone('.bzr'), 'my-lock')
31
31
 
32
32
    def test_read_write(self):
33
33
        self.assertRaises(NoSuchFile, self.lockable.controlfile, 'foo')