~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_transport_implementations.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-07-05 22:42:07 UTC
  • mfrom: (2586.1.4 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20070705224207-7pslqt12ofh4vnzx
(robertc) New method external_url on Transport for obtaining the url to hand to external processes. Include the external_url for the backing_transport of SmartServer in the server_started and stopped hooks. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
135
135
        t_b = t_a.clone('b')
136
136
        self.assertRaises(NoSuchFile, t_b.ensure_base)
137
137
 
 
138
    def test_external_url(self):
 
139
        """.external_url either works or raises InProcessTransport."""
 
140
        t = self.get_transport()
 
141
        try:
 
142
            t.external_url()
 
143
        except errors.InProcessTransport:
 
144
            pass
 
145
 
138
146
    def test_has(self):
139
147
        t = self.get_transport()
140
148