~ubuntu-branches/ubuntu/vivid/bzr-svn/vivid

« back to all changes in this revision

Viewing changes to tests/test_workingtree.py

  • Committer: Package Import Robot
  • Author(s): Jelmer Vernooij
  • Date: 2012-03-06 01:55:20 UTC
  • mfrom: (3.3.13 sid)
  • Revision ID: package-import@ubuntu.com-20120306015520-grugcrw9ju4a0qsm
Tags: 1.2.1-1
* Fix format string of copyright file.
* Bump standards version to 3.9.3.
* Add basic tests for autopkgtest.
* New upstream release.
 + Fixes tests against newer versions of bzr. Closes: #660730

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
    )
43
43
from bzrlib.repository import Repository
44
44
from bzrlib.tests import (
45
 
    KnownFailure,
46
45
    TestCase,
47
46
    )
48
47
try:
315
314
        wt = self.make_svn_branch_and_tree('a', 'dc', lossy=True)
316
315
        self.assertEqual(wt.branch.generate_revision_id(1),
317
316
                         wt.basis_tree().get_revision_id())
318
 
        inv = Inventory()
319
317
        root_id = wt.branch.repository.get_mapping().generate_file_id(
320
318
                (wt.branch.repository.uuid, wt.branch.get_branch_path(), 1), u"")
321
 
        inv.revision_id = wt.branch.generate_revision_id(1)
322
 
        inv.add_path('', 'directory', root_id).revision = inv.revision_id
323
 
 
324
 
        self.assertEqual(inv, wt.basis_tree().inventory)
 
319
        self.assertEquals(wt.get_root_id(), root_id)
325
320
 
326
321
    def test_basis_tree(self):
327
322
        tree = self.make_svn_branch_and_tree('a', 'dc')