~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_workingtree/test_add.py

  • Committer: Vincent Ladeuil
  • Date: 2011-07-06 09:22:00 UTC
  • mfrom: (6008 +trunk)
  • mto: (6012.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 6013.
  • Revision ID: v.ladeuil+lp@free.fr-20110706092200-7iai2mwzc0sqdsvf
MergingĀ inĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Tests for interface conformance of 'WorkingTree.add'"""
18
18
 
19
 
import os
20
 
 
21
19
from bzrlib import (
22
20
    errors,
23
21
    inventory,
24
 
    osutils,
25
22
    tests,
26
23
    )
27
24
from bzrlib.tests.per_workingtree import TestCaseWithWorkingTree
153
150
        tree = self.make_branch_and_tree('.')
154
151
        tree.lock_write()
155
152
        tree.add('')
156
 
        self.assertEqual([tree.path2id('')], list(tree))
 
153
        self.assertEqual([tree.path2id('')], list(tree.all_file_ids()))
157
154
        # the root should have been changed to be a new unique root.
158
155
        self.assertNotEqual(inventory.ROOT_ID, tree.path2id(''))
159
156
        tree.unlock()