~bzr/ubuntu/lucid/bzr/beta-ppa

« back to all changes in this revision

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

  • Committer: Martin Pool
  • Date: 2010-08-18 04:26:39 UTC
  • mfrom: (129.1.8 packaging-karmic)
  • Revision ID: mbp@sourcefrog.net-20100818042639-mjoxtngyjwiu05fo
* PPA rebuild for lucid.
* PPA rebuild for karmic.
* PPA rebuild onto jaunty.
* New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2004, 2005, 2009 Canonical Ltd
 
1
# Copyright (C) 2005-2010 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
17
17
import os
18
18
 
19
19
from bzrlib.errors import BzrCommandError, NoSuchRevision
20
 
from bzrlib.tests.blackbox import ExternalBase
 
20
from bzrlib.tests import TestCaseWithTransport
21
21
from bzrlib.workingtree import WorkingTree
22
22
 
23
23
 
24
 
class TestRevisionInfo(ExternalBase):
 
24
class TestRevisionInfo(TestCaseWithTransport):
25
25
 
26
 
    def check_error(self, output, *args):
27
 
        """Verify that the expected error matches what bzr says.
 
26
    def check_output(self, output, *args):
 
27
        """Verify that the expected output matches what bzr says.
28
28
 
29
29
        The output is supplied first, so that you can supply a variable
30
30
        number of arguments to bzr.
31
31
        """
32
 
        self.assertContainsRe(self.run_bzr(args, retcode=3)[1], output)
 
32
        self.assertEquals(self.run_bzr(*args)[0], output)
33
33
 
34
34
    def test_revision_info(self):
35
35
        """Test that 'bzr revision-info' reports the correct thing."""