~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to tests.py

  • Committer: Michael Ellerman
  • Date: 2006-02-21 05:09:26 UTC
  • mto: (0.1.73 shelf-tmp)
  • mto: This revision was merged to the branch mainline in revision 334.
  • Revision ID: michael@ellerman.id.au-20060221050926-a135277612b73609
Test for shelf show with no patch to show.

Show diffs side-by-side

added added

removed removed

Lines of Context:
178
178
        # Check the shown output is right
179
179
        shown = self.capture('shelf show 00', retcode=0)
180
180
        self.assertEqual(shown, shelf)
 
181
 
 
182
    def test_shelf_show_with_no_patch(self):
 
183
        tree = self.make_branch_and_tree('.')
 
184
        stderr = self.run_bzr_captured(['shelf', 'show', '00'], retcode=None)[1]
 
185
        self.assertTrue("Patch '00' doesn't exist on shelf default!" in stderr)
 
186