~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_config.py

  • Committer: Martin Pool
  • Date: 2008-05-22 05:48:22 UTC
  • mfrom: (3407.2.16 controlfiles)
  • mto: This revision was merged to the branch mainline in revision 3448.
  • Revision ID: mbp@sourcefrog.net-20080522054822-lrq17tx62wbfzj8r
merge further LockableFile deprecations

Show diffs side-by-side

added added

removed removed

Lines of Context:
147
147
            self.base = "http://example.com/branches/demo"
148
148
        else:
149
149
            self.base = base
150
 
        self.control_files = FakeControlFiles(user_id=user_id)
 
150
        self._transport = self.control_files = \
 
151
            FakeControlFilesAndTransport(user_id=user_id)
151
152
 
152
153
    def lock_write(self):
153
154
        pass
156
157
        pass
157
158
 
158
159
 
159
 
class FakeControlFiles(object):
 
160
class FakeControlFilesAndTransport(object):
160
161
 
161
162
    def __init__(self, user_id=None):
162
163
        self.files = {}