~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_remote.py

Deprecate LockableFiles.get

Show diffs side-by-side

added added

removed removed

Lines of Context:
612
612
    """
613
613
 
614
614
    def test_get_branch_conf(self):
 
615
        raise tests.KnownFailure("branch.conf over hpss not handled specially")
615
616
        # in an empty branch we decode the response properly
616
617
        client = FakeClient([(('ok', ), 'config file body')], self.get_url())
617
618
        # we need to make a real branch because the remote_branch.control_files
621
622
        # we do not want bzrdir to make any remote calls
622
623
        bzrdir = RemoteBzrDir(transport, _client=False)
623
624
        branch = RemoteBranch(bzrdir, None, _client=client)
624
 
        result = branch.control_files.get('branch.conf')
 
625
        result = branch.control_files._transport.get('branch.conf')
 
626
        self.assertEqual('config file body', result.read())
625
627
        self.assertEqual(
626
628
            [('call_expecting_body', 'Branch.get_config_file', ('quack/',))],
627
629
            client._calls)
628
 
        self.assertEqual('config file body', result.read())
629
630
 
630
631
 
631
632
class TestBranchLockWrite(tests.TestCase):