~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to tests/test_prepare_shelf.py

  • Committer: Aaron Bentley
  • Date: 2008-10-06 04:39:46 UTC
  • mto: (0.15.1 unshelve)
  • mto: This revision was merged to the branch mainline in revision 3820.
  • Revision ID: aaron@aaronbentley.com-20081006043946-1xe0q15c46af5hyz
Handle file-id when shelving creation

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
        self.assertEqual([('add file', 'foo-id', 'file')], list(creator))
93
93
        creator.shelve_creation('foo-id', 'file')
94
94
        creator.transform()
 
95
        self.assertRaises(StopIteration,
 
96
                          tree.iter_entries_by_dir(['foo-id']).next)
 
97
        s_trans_id = creator.shelf_transform.trans_id_file_id('foo-id')
 
98
        self.assertEqual('foo-id',
 
99
                         creator.shelf_transform.final_file_id(s_trans_id))
95
100
        self.failIfExists('foo')
96
101
        self.assertShelvedFileEqual('a\n', creator, 'foo-id')