~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_smart.py

  • Committer: Launchpad Translations on behalf of bzr-core
  • Date: 2012-12-17 04:30:37 UTC
  • mto: (6581.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 6582.
  • Revision ID: launchpad_translations_on_behalf_of_bzr-core-20121217043037-gdkzkow6s9fsa4o0
Launchpad automatic translations update.

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
 
        super(TestCaseWithChrootedTransport, self).setUp()
 
85
        tests.TestCaseWithTransport.setUp(self)
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
 
        super(SetLastRevisionTestBase, self).setUp()
 
1061
        tests.TestCaseWithMemoryTransport.setUp(self)
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
 
1376
1379
    def test_lock_write_on_unlocked_branch(self):
1377
1380
        backing = self.get_transport()
1378
1381
        request = smart_branch.SmartServerBranchRequestLockWrite(backing)
1478
1481
 
1479
1482
class TestSmartServerBranchRequestGetPhysicalLockStatus(TestLockedBranch):
1480
1483
 
 
1484
    def setUp(self):
 
1485
        tests.TestCaseWithMemoryTransport.setUp(self)
 
1486
 
1481
1487
    def test_true(self):
1482
1488
        backing = self.get_transport()
1483
1489
        request = smart_branch.SmartServerBranchRequestGetPhysicalLockStatus(
1503
1509
 
1504
1510
class TestSmartServerBranchRequestUnlock(TestLockedBranch):
1505
1511
 
 
1512
    def setUp(self):
 
1513
        tests.TestCaseWithMemoryTransport.setUp(self)
 
1514
 
1506
1515
    def test_unlock_on_locked_branch_and_repo(self):
1507
1516
        backing = self.get_transport()
1508
1517
        request = smart_branch.SmartServerBranchRequestUnlock(backing)
2192
2201
 
2193
2202
class TestSmartServerRepositoryUnlock(tests.TestCaseWithMemoryTransport):
2194
2203
 
 
2204
    def setUp(self):
 
2205
        tests.TestCaseWithMemoryTransport.setUp(self)
 
2206
 
2195
2207
    def test_unlock_on_locked_repo(self):
2196
2208
        backing = self.get_transport()
2197
2209
        request = smart_repo.SmartServerRepositoryUnlock(backing)