/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_transform.py

  • Committer: Aaron Bentley
  • Date: 2007-06-05 15:45:20 UTC
  • mto: This revision was merged to the branch mainline in revision 2507.
  • Revision ID: abentley@panoramicfeedback.com-20070605154520-kw4foazx2ayumzpr
Add additional test for no-name contents

Show diffs side-by-side

added added

removed removed

Lines of Context:
868
868
            self.fail("Can't handle contents with no name")
869
869
        transform.finalize()
870
870
 
 
871
    def test_noname_contents_nested(self):
 
872
        """TreeTransform should permit deferring naming files."""
 
873
        transform, root = self.get_transform()
 
874
        parent = transform.trans_id_file_id('parent-id')
 
875
        try:
 
876
            transform.create_directory(parent)
 
877
        except KeyError:
 
878
            self.fail("Can't handle contents with no name")
 
879
        child = transform.new_directory('child', parent)
 
880
        transform.adjust_path('parent', root, parent)
 
881
        transform.apply()
 
882
        self.failUnlessExists(self.wt.abspath('parent/child'))
 
883
        self.assertEqual(1, transform.rename_count)
 
884
 
871
885
    def test_reuse_name(self):
872
886
        """Avoid reusing the same limbo name for different files"""
873
887
        transform, root = self.get_transform()