~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_shelf.py

  • Committer: Andrew Bennetts
  • Date: 2009-08-25 01:25:57 UTC
  • mfrom: (4642 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4657.
  • Revision ID: andrew.bennetts@canonical.com-20090825012557-1ku5o09nv3ra9n12
Merge from bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
464
464
        self.assertRaises(errors.PathsNotVersionedError,
465
465
                          shelf.ShelfCreator, tree, tree.basis_tree(), ['foo'])
466
466
 
 
467
    def test_shelve_skips_added_root(self):
 
468
        """Skip adds of the root when iterating through shelvable changes."""
 
469
        tree = self.make_branch_and_tree('tree')
 
470
        creator = shelf.ShelfCreator(tree, tree.basis_tree())
 
471
        self.addCleanup(creator.finalize)
 
472
        self.assertEqual([], list(creator.iter_shelvable()))
 
473
 
467
474
 
468
475
class TestUnshelver(tests.TestCaseWithTransport):
469
476