/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_uncommit.py

  • Committer: John Arbash Meinel
  • Date: 2008-03-20 15:10:05 UTC
  • mto: This revision was merged to the branch mainline in revision 3299.
  • Revision ID: john@arbash-meinel.com-20080320151005-z9lajjy69m20of17
uncommit --local in an unbound branch raises the same exception as commit --local

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
        self.assertEqual((2, history[1]), tree.branch.last_revision_info())
90
90
        self.assertEqual(history[0], child.last_revision())
91
91
        self.assertEqual((1, history[0]), child.branch.last_revision_info())
 
92
 
 
93
    def test_uncommit_unbound_local(self):
 
94
        tree, history = self.make_linear_tree()
 
95
 
 
96
        # If this tree isn't bound, local=True raises an exception
 
97
        self.assertRaises(errors.LocalRequiresBoundBranch,
 
98
            uncommit.uncommit, tree.branch, tree=tree, local=True)