~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_serve.py

  • Committer: Robert Collins
  • Date: 2010-06-28 02:41:22 UTC
  • mto: This revision was merged to the branch mainline in revision 5324.
  • Revision ID: robertc@robertcollins.net-20100628024122-g951fzp74f3u6wst
Sanity check that new_trace_file in pop_log_file is valid, and also fix a test that monkey patched get_terminal_encoding.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
    errors,
32
32
    osutils,
33
33
    revision as _mod_revision,
34
 
    transport,
35
34
    urlutils,
36
35
    )
37
36
from bzrlib.branch import Branch
44
43
    TestSkipped,
45
44
    )
46
45
from bzrlib.trace import mutter
47
 
from bzrlib.transport import remote
 
46
from bzrlib.transport import get_transport, remote
48
47
 
49
48
 
50
49
class TestBzrServeBase(TestCaseWithTransport):
193
192
    def test_bzr_serve_port_readonly(self):
194
193
        """bzr server should provide a read only filesystem by default."""
195
194
        process, url = self.start_server_port()
196
 
        t = transport.get_transport(url)
197
 
        self.assertRaises(errors.TransportNotPossible, t.mkdir, 'adir')
 
195
        transport = get_transport(url)
 
196
        self.assertRaises(errors.TransportNotPossible, transport.mkdir, 'adir')
198
197
        self.assertServerFinishesCleanly(process)
199
198
 
200
199
    def test_bzr_serve_port_readwrite(self):