~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

Merge updated set_parents api.

Show diffs side-by-side

added added

removed removed

Lines of Context:
178
178
        new_tree.read_working_inventory()
179
179
        self.assertEqual(base_tree.path2id('b/c'), new_tree.path2id('c'))
180
180
        self.assertEqual(base_tree.path2id('b/d'), new_tree.path2id('d'))
 
181
 
 
182
    def test_add_dry_run(self):
 
183
        # ensure that --dry-run actually don't add anything
 
184
        base_tree = self.make_branch_and_tree('.')
 
185
        self.build_tree(['spam'])
 
186
        out = self.run_bzr_captured(['add', '--dry-run'], retcode=0)[0]
 
187
        self.assertEquals('added spam\n', out)
 
188
        out = self.run_bzr_captured(['added'], retcode=0)[0]
 
189
        self.assertEquals('', out)