254
271
self.addCleanup(tree.unlock)
255
272
shelver = ExpectShelver(tree, tree.basis_tree())
256
274
shelver.expect('Shelve? [yNfq?]', '?')
257
275
shelver.expect('Shelve? [(y)es, (N)o, (f)inish, or (q)uit]', 'f')
258
276
shelver.expect('Shelve 2 change(s)? [yNfq?]', 'y')
262
280
tree = self.create_shelvable_tree()
263
281
shelver = shelf_ui.Shelver.from_args(sys.stdout, all=True,
264
282
directory='tree', destroy=True)
269
285
self.assertIs(None, tree.get_shelf_manager().last_shelf())
270
286
self.assertFileEqual(LINES_AJ, 'tree/foo')