~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_reconfigure.py

  • Committer: Marius Kruger
  • Date: 2009-02-15 23:45:36 UTC
  • mto: (4009.2.2 bzr.integration)
  • mto: This revision was merged to the branch mainline in revision 4011.
  • Revision ID: amanic@gmail.com-20090215234536-xuwmbmdw2ktfj4er
add test_repository_tree_reconfiguration_not_supported

Show diffs side-by-side

added added

removed removed

Lines of Context:
410
410
            reconfigure.Reconfigure.set_repository_trees, repo.bzrdir, False)
411
411
        self.assertContainsRe(str(e),
412
412
            r"Shared repository '.*' already doesn't create working trees.")
 
413
 
 
414
    def test_repository_tree_reconfiguration_not_supported(self):
 
415
        tree = self.make_branch_and_tree('tree')
 
416
        e = self.assertRaises(errors.ReconfigurationNotSupported,
 
417
            reconfigure.Reconfigure.set_repository_trees, tree.bzrdir, None)
 
418
        self.assertContainsRe(str(e),
 
419
            r"Requested reconfiguration of '.*' is not supported.")