~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Jonathan Riddell
  • Date: 2011-09-07 14:20:10 UTC
  • mfrom: (6123.1.10 +trunk)
  • mto: (6123.1.12 +trunk)
  • mto: This revision was merged to the branch mainline in revision 6124.
  • Revision ID: jriddell@canonical.com-20110907142010-kncwzcbpsxd714ug
mergeĀ inĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
        tree.add(['dir/subdir/foo'], ['foo-id'])
102
102
        root_id = tree.get_root_id()
103
103
 
104
 
        self.assertTreeLayout([('', root_id), ('dir', 'dir-id'),
105
 
                               ('dir/subdir', 'subdir-id'),
 
104
        self.assertTreeLayout([('', root_id), ('dir/', 'dir-id'),
 
105
                               ('dir/subdir/', 'subdir-id'),
106
106
                               ('dir/subdir/foo', 'foo-id')], tree)
107
107
 
108
108
    def test_add_multiple(self):
113
113
        root_id = tree.get_root_id()
114
114
 
115
115
        self.assertTreeLayout([('', root_id), ('a', 'a-id'), ('b', 'b-id'),
116
 
                               ('dir', 'dir-id'), ('dir/subdir', 'subdir-id'),
 
116
                               ('dir/', 'dir-id'), ('dir/subdir/', 'subdir-id'),
117
117
                               ('dir/subdir/foo', 'foo-id')], tree)
118
118
 
119
119
    def test_add_invalid(self):