~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_selftest.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-06-29 18:21:57 UTC
  • mfrom: (1711.2.72 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060629182157-cdc39b5f9e4fac85
(jam) add run_bzr_error, clean up remerge tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
694
694
        err = self.run_bzr_subprocess('merge', '--merge-type', 'magic merge', 
695
695
                                      retcode=3)[1]
696
696
        self.assertContainsRe(err, 'No known merge type magic merge')
 
697
 
 
698
    def test_run_bzr_error(self):
 
699
        out, err = self.run_bzr_error(['^$'], 'rocks', retcode=0)
 
700
        self.assertEqual(out, 'it sure does!\n')
 
701
 
 
702
        out, err = self.run_bzr_error(["'foobarbaz' is not a versioned file"],
 
703
                                      'file-id', 'foobarbaz')