~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Jonathan Lange
  • Date: 2007-04-17 07:59:42 UTC
  • mto: This revision was merged to the branch mainline in revision 2446.
  • Revision ID: jml@canonical.com-20070417075942-1vfzpwjf8rvbty1f
Variety of whitespace cleanups, tightening of tests and docstring changes in
response to review of bug support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
361
361
 
362
362
    def test_fixes_bug_output(self):
363
363
        """commit --fixes=lp:23452 succeeds without output."""
364
 
        self.run_bzr("init")
365
 
        self.build_tree(['hello.txt'])
366
 
        self.run_bzr('add', 'hello.txt')
 
364
        tree = self.make_branch_and_tree('tree')
 
365
        self.build_tree(['tree/hello.txt'])
 
366
        tree.add('hello.txt')
367
367
        output, err = self.run_bzr(
368
 
            'commit', '-m', 'hello', '--fixes=lp:23452', 'hello.txt')
 
368
            'commit', '-m', 'hello', '--fixes=lp:23452', 'tree/hello.txt')
369
369
        self.assertEqual('', output)
370
370
        self.assertEqual('added hello.txt\nCommitted revision 1.\n', err)
371
371