~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_bzrdir.py

Merge from bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
454
454
        branch.bzrdir.open_workingtree()
455
455
 
456
456
 
 
457
class TestRepositoryAcquisitionPolicy(TestCaseWithTransport):
 
458
 
 
459
    def test_acquire_repository_standalone(self):
 
460
        """The default acquisition policy should create a standalone branch."""
 
461
        my_bzrdir = self.make_bzrdir('.')
 
462
        repo_policy = my_bzrdir.determine_repository_policy()
 
463
        repo = repo_policy.acquire_repository()
 
464
        self.assertEqual(repo.bzrdir.root_transport.base,
 
465
                         my_bzrdir.root_transport.base)
 
466
        self.assertFalse(repo.is_shared())
 
467
 
 
468
 
457
469
class ChrootedTests(TestCaseWithTransport):
458
470
    """A support class that provides readonly urls outside the local namespace.
459
471