~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to tests/shelf_tests.py

  • Committer: Aaron Bentley
  • Date: 2007-12-18 01:30:03 UTC
  • Revision ID: aaron.bentley@utoronto.ca-20071218013003-7par2kac2nry20n6
Clean error when 'shelf show' invoked with no patches on shelf.

Show diffs side-by-side

added added

removed removed

Lines of Context:
624
624
    def test_shelf_help(self):
625
625
        self.assertContainsRe(cmd_shelf().help(),
626
626
                              'list\n.*List the patches on the current shelf')
 
627
 
 
628
    def test_show_empty_shelf(self):
 
629
        self.tree = self.make_branch_and_tree('.')
 
630
        self.run_bzr_error(('No patches on shelf.',), 'shelf show')