~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/test_revision_info.py

[merge] robertc's integration, updated tests to check for retcode=3

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
        The output is supplied first, so that you can supply a variable
29
29
        number of arguments to bzr.
30
30
        """
31
 
        self.assertEquals(self.run_bzr_captured(args, retcode=1)[1], output)
 
31
        self.assertContainsRe(self.run_bzr_captured(args, retcode=3)[1], output)
32
32
 
33
33
    def check_output(self, output, *args):
34
34
        """Verify that the expected output matches what bzr says.
49
49
        b.working_tree().commit('Commit three', rev_id='a@r-0-3')
50
50
 
51
51
        # Make sure revision-info without any arguments throws an exception
52
 
        self.check_error('bzr: ERROR: You must supply a revision identifier\n',
 
52
        self.check_error('bzr: ERROR: bzrlib.errors.BzrCommandError: '
 
53
                         'You must supply a revision identifier\n',
53
54
                         'revision-info')
54
55
 
55
56
        values = {