~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_bundle.py

  • Committer: Aaron Bentley
  • Date: 2006-08-08 06:47:16 UTC
  • mto: (1910.2.43 format-bumps)
  • mto: This revision was merged to the branch mainline in revision 1922.
  • Revision ID: aaron.bentley@utoronto.ca-20060808064716-75bc465292c2708f
Ensure root entry always has a revision

Show diffs side-by-side

added added

removed removed

Lines of Context:
799
799
        self.assertEqual(19800, rev.timezone)
800
800
        self.assertEqual(1152544886.0, rev.timestamp)
801
801
 
 
802
    def test_bundle_root_id(self):
 
803
        self.tree1 = self.make_branch_and_tree('b1')
 
804
        self.b1 = self.tree1.branch
 
805
        self.tree1.commit('message', rev_id='revid1')
 
806
        bundle = self.get_valid_bundle(None, 'revid1')
 
807
        tree = bundle.revision_tree(self.b1.repository, 'revid1')
 
808
        self.assertEqual(tree.inventory.root.revision, 'revid1')
 
809
 
802
810
 
803
811
class MungedBundleTester(TestCaseWithTransport):
804
812