~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_shelf_ui.py

  • Committer: Aaron Bentley
  • Date: 2009-03-12 01:08:58 UTC
  • mto: This revision was merged to the branch mainline in revision 4127.
  • Revision ID: aaron@aaronbentley.com-20090312010858-hq6xx22l59nq4udp
Implement shelve --destroy

Show diffs side-by-side

added added

removed removed

Lines of Context:
199
199
        shelver.expect('Shelve 2 change(s)? [yNfq?]', 'y')
200
200
        shelver.run()
201
201
 
 
202
    def test_shelve_distroy(self):
 
203
        tree = self.create_shelvable_tree()
 
204
        shelver = shelf_ui.Shelver.from_args(sys.stdout, all=True,
 
205
                                             directory='tree', destroy=True)
 
206
        shelver.run()
 
207
        self.assertIs(None, tree.get_shelf_manager().last_shelf())
 
208
        self.assertFileEqual(LINES_AJ, 'tree/foo')
 
209
 
202
210
 
203
211
class TestUnshelver(tests.TestCaseWithTransport):
204
212