~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_bzrdir.py

  • Committer: Aaron Bentley
  • Date: 2008-04-03 19:39:27 UTC
  • mto: (3242.4.1 stacked)
  • mto: This revision was merged to the branch mainline in revision 3359.
  • Revision ID: aaron@aaronbentley.com-20080403193927-sdxgthpn403ovr5m
Abstract policy decisions into determine_repository_policy

Show diffs side-by-side

added added

removed removed

Lines of Context:
453
453
        branch.bzrdir.open_repository()
454
454
        branch.bzrdir.open_workingtree()
455
455
 
 
456
    def test_apply_repository_policy_standalone(self):
 
457
        my_bzrdir = self.make_bzrdir('.')
 
458
        repo_policy = my_bzrdir.determine_repository_policy()
 
459
        repo = repo_policy.apply()
 
460
        self.assertEqual(repo.bzrdir.root_transport.base,
 
461
                         my_bzrdir.root_transport.base)
456
462
 
457
463
class ChrootedTests(TestCaseWithTransport):
458
464
    """A support class that provides readonly urls outside the local namespace.