~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Jelmer Vernooij
  • Date: 2012-02-20 12:19:29 UTC
  • mfrom: (6437.23.11 2.5)
  • mto: (6581.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 6582.
  • Revision ID: jelmer@samba.org-20120220121929-7ni2psvjoatm1yp4
Merge bzr/2.5.

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