~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: John Arbash Meinel
  • Date: 2006-08-17 13:53:36 UTC
  • mfrom: (1939 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1940.
  • Revision ID: john@arbash-meinel.com-20060817135336-100de82962355d3b
[merge] bzr.dev 1939

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)