~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_smart.py

(vila) Calling super() instead of mentioning the base class in setUp avoid
 mistakes. (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
 
83
83
    def setUp(self):
84
84
        self.vfs_transport_factory = memory.MemoryServer
85
 
        tests.TestCaseWithTransport.setUp(self)
 
85
        super(TestCaseWithChrootedTransport, self).setUp()
86
86
        self._chroot_server = None
87
87
 
88
88
    def get_transport(self, relpath=None):
1058
1058
    """Base test case for verbs that implement set_last_revision."""
1059
1059
 
1060
1060
    def setUp(self):
1061
 
        tests.TestCaseWithMemoryTransport.setUp(self)
 
1061
        super(SetLastRevisionTestBase, self).setUp()
1062
1062
        backing_transport = self.get_transport()
1063
1063
        self.request = self.request_class(backing_transport)
1064
1064
        self.tree = self.make_branch_and_memory_tree('.')
1373
1373
 
1374
1374
class TestSmartServerBranchRequestLockWrite(TestLockedBranch):
1375
1375
 
1376
 
    def setUp(self):
1377
 
        tests.TestCaseWithMemoryTransport.setUp(self)
1378
 
 
1379
1376
    def test_lock_write_on_unlocked_branch(self):
1380
1377
        backing = self.get_transport()
1381
1378
        request = smart_branch.SmartServerBranchRequestLockWrite(backing)
1481
1478
 
1482
1479
class TestSmartServerBranchRequestGetPhysicalLockStatus(TestLockedBranch):
1483
1480
 
1484
 
    def setUp(self):
1485
 
        tests.TestCaseWithMemoryTransport.setUp(self)
1486
 
 
1487
1481
    def test_true(self):
1488
1482
        backing = self.get_transport()
1489
1483
        request = smart_branch.SmartServerBranchRequestGetPhysicalLockStatus(
1509
1503
 
1510
1504
class TestSmartServerBranchRequestUnlock(TestLockedBranch):
1511
1505
 
1512
 
    def setUp(self):
1513
 
        tests.TestCaseWithMemoryTransport.setUp(self)
1514
 
 
1515
1506
    def test_unlock_on_locked_branch_and_repo(self):
1516
1507
        backing = self.get_transport()
1517
1508
        request = smart_branch.SmartServerBranchRequestUnlock(backing)
2201
2192
 
2202
2193
class TestSmartServerRepositoryUnlock(tests.TestCaseWithMemoryTransport):
2203
2194
 
2204
 
    def setUp(self):
2205
 
        tests.TestCaseWithMemoryTransport.setUp(self)
2206
 
 
2207
2195
    def test_unlock_on_locked_repo(self):
2208
2196
        backing = self.get_transport()
2209
2197
        request = smart_repo.SmartServerRepositoryUnlock(backing)