~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_url_policy_open.py

  • Committer: Patch Queue Manager
  • Date: 2012-03-06 19:49:19 UTC
  • mfrom: (6472.2.6 use-bzr-controldir)
  • Revision ID: pqm@pqm.ubuntu.com-20120306194919-kt7mj6xmhifsgees
(jelmer) Use bzrlib.controldir for generic access to control directories,
 rather than bzrlib.bzrdir. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
    BranchReferenceFormat,
23
23
    )
24
24
from bzrlib.bzrdir import (
25
 
    BzrDir,
26
25
    BzrProber,
27
26
    )
28
 
from bzrlib.controldir import ControlDirFormat
 
27
from bzrlib.controldir import (
 
28
    ControlDir,
 
29
    ControlDirFormat,
 
30
    )
29
31
from bzrlib.errors import NotBranchError
30
32
from bzrlib.url_policy_open import (
31
33
    BadUrl,
182
184
        self.assertRaises(NotBranchError, opener.open, ".")
183
185
        self.assertEquals(1, len(TrackingProber.seen_urls))
184
186
        TrackingProber.seen_urls = []
185
 
        # And make sure it's registered in such a way that BzrDir.open would
 
187
        # And make sure it's registered in such a way that ControlDir.open would
186
188
        # use it.
187
 
        self.assertRaises(NotBranchError, BzrDir.open, ".")
 
189
        self.assertRaises(NotBranchError, ControlDir.open, ".")
188
190
        self.assertEquals(1, len(TrackingProber.seen_urls))
189
191
 
190
192
    def test_allowed_url(self):