~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_lockable_files.py

  • Committer: Alexander Belchenko
  • Date: 2012-02-29 12:35:23 UTC
  • mto: (6437.23.21 2.5)
  • mto: This revision was merged to the branch mainline in revision 6493.
  • Revision ID: bialix@ukr.net-20120229123523-giercg9s8ck7ufg1
Standalone bzr.exe includes QtTest library from PyQt4 framework that required for QBzr tests. (Alexander Belchenko, #928963)

Show diffs side-by-side

added added

removed removed

Lines of Context:
272
272
                                      _TestLockableFiles_mixin):
273
273
 
274
274
    def setUp(self):
275
 
        super(TestLockableFiles_TransportLock, self).setUp()
 
275
        TestCaseInTempDir.setUp(self)
276
276
        t = transport.get_transport_from_path('.')
277
277
        t.mkdir('.bzr')
278
278
        self.sub_transport = t.clone('.bzr')
293
293
 
294
294
 
295
295
class TestLockableFiles_LockDir(TestCaseInTempDir,
296
 
                                _TestLockableFiles_mixin):
 
296
                              _TestLockableFiles_mixin):
297
297
    """LockableFile tests run with LockDir underneath"""
298
298
 
299
299
    def setUp(self):
300
 
        super(TestLockableFiles_LockDir, self).setUp()
 
300
        TestCaseInTempDir.setUp(self)
301
301
        self.transport = transport.get_transport_from_path('.')
302
302
        self.lockable = self.get_lockable()
303
303
        # the lock creation here sets mode - test_permissions on branch
329
329
 
330
330
 
331
331
class TestLockableFiles_RemoteLockDir(TestCaseWithSmartMedium,
332
 
                                      _TestLockableFiles_mixin):
 
332
                              _TestLockableFiles_mixin):
333
333
    """LockableFile tests run with RemoteLockDir on a branch."""
334
334
 
335
335
    def setUp(self):
336
 
        super(TestLockableFiles_RemoteLockDir, self).setUp()
 
336
        TestCaseWithSmartMedium.setUp(self)
337
337
        # can only get a RemoteLockDir with some RemoteObject...
338
338
        # use a branch as thats what we want. These mixin tests test the end
339
339
        # to end behaviour, so stubbing out the backend and simulating would