~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: John Arbash Meinel
  • Date: 2011-05-11 11:35:28 UTC
  • mto: This revision was merged to the branch mainline in revision 5851.
  • Revision ID: john@arbash-meinel.com-20110511113528-qepibuwxicjrbb2h
Break compatibility with python <2.6.

This includes auditing the code for places where we were doing
explicit 'sys.version' checks and removing them as appropriate.

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()