~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to tests/test_shelf.py

  • Committer: Aaron Bentley
  • Date: 2008-10-11 16:11:06 UTC
  • mfrom: (0.12.50 shelf-manager)
  • mto: This revision was merged to the branch mainline in revision 3823.
  • Revision ID: aaron@aaronbentley.com-20081011161106-kvgph7gjf5m2h8s5
Merge shelf-manager into shelf-ui

Show diffs side-by-side

added added

removed removed

Lines of Context:
341
341
        finally:
342
342
            shelf_file.close()
343
343
 
 
344
    def test_read_non_existant(self):
 
345
        manager = self.get_manager()
 
346
        e = self.assertRaises(shelf.NoSuchShelfId, manager.read_shelf, 1)
 
347
        self.assertEqual('No changes are shelved with id "1".', str(e))
 
348
 
344
349
    def test_shelve_changes(self):
345
350
        tree = self.make_branch_and_tree('tree')
346
351
        tree.commit('no-change commit')