~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_directory_service.py

  • Committer: Michael Hudson
  • Date: 2008-08-13 23:42:32 UTC
  • mto: (3714.2.1 bzr.ab.integration2)
  • mto: This revision was merged to the branch mainline in revision 3717.
  • Revision ID: michael.hudson@canonical.com-20080813234232-nzwpyo7u42zrkom5
Allow appending path segments to the :<name> style aliases.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
from bzrlib.directory_service import DirectoryServiceRegistry, directories
21
21
from bzrlib.tests import TestCase, TestCaseWithTransport
22
22
from bzrlib.transport import get_transport
23
 
 
 
23
from bzrlib.urlutils import join
24
24
 
25
25
class FooService(object):
26
26
    """A directory service that maps the name to a FILE url"""
83
83
        branch = self.make_branch('.')
84
84
        self.assertEqual(branch.base, directories.dereference(':this'))
85
85
 
 
86
    def test_extra_path(self):
 
87
        branch = self.make_branch('.')
 
88
        self.assertEqual(
 
89
            join(branch.base, 'arg'), directories.dereference(':this/arg'))
 
90
 
86
91
    def test_lookup_badname(self):
87
92
        branch = self.make_branch('.')
88
93
        e = self.assertRaises(errors.InvalidLocationAlias,