~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/inventory_implementations/basics.py

  • Committer: Jelmer Vernooij
  • Date: 2008-08-09 00:45:30 UTC
  • mto: (3606.2.2 1.6)
  • mto: This revision was merged to the branch mainline in revision 3617.
  • Revision ID: jelmer@samba.org-20080809004530-v2g6mrvl4bc1tae1
Fix copying of root revision in inventory.

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
        inv2 = inv.copy()
82
82
        self.assertIs(None, inv2.root)
83
83
 
 
84
    def test_copy_copies_root_revision(self):
 
85
        """Make sure the revision of the root gets copied."""
 
86
        inv = self.make_inventory(root_id='someroot')
 
87
        inv.root.revision = 'therev'
 
88
        inv2 = inv.copy()
 
89
        self.assertEquals('someroot', inv2.root.file_id)
 
90
        self.assertEquals('therev', inv2.root.revision)
 
91
 
84
92
    def test_is_root(self):
85
93
        """Ensure our root-checking code is accurate."""
86
94
        inv = self.make_inventory('TREE_ROOT')