~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_shelf.py

  • Committer: Aaron Bentley
  • Date: 2008-10-17 03:31:02 UTC
  • mto: (0.16.77 shelf-ui)
  • mto: This revision was merged to the branch mainline in revision 3820.
  • Revision ID: aaron@aaronbentley.com-20081017033102-fknu995d8c01ib9c
Update docs, move items to proper files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
import os
18
18
 
19
 
from bzrlib import pack, shelf, tests, transform
 
19
from bzrlib import errors, pack, shelf, tests, transform
20
20
 
21
21
 
22
22
class TestPrepareShelf(tests.TestCaseWithTransport):
382
382
 
383
383
    def test_read_non_existant(self):
384
384
        manager = self.get_manager()
385
 
        e = self.assertRaises(shelf.NoSuchShelfId, manager.read_shelf, 1)
 
385
        e = self.assertRaises(errors.NoSuchShelfId, manager.read_shelf, 1)
386
386
        self.assertEqual('No changes are shelved with id "1".', str(e))
387
387
 
388
388
    def test_shelve_changes(self):