~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: John Whitley
  • Date: 2007-03-12 06:02:37 UTC
  • mto: (2347.1.1 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 2348.
  • Revision ID: whitley@bangpath.org-20070312060237-sdfcipif2mxckp2j
Added blackbox test for bzr version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
"""Black-box tests for bzr version."""
 
2
 
 
3
import bzrlib
 
4
from bzrlib.tests.blackbox import ExternalBase
 
5
 
 
6
class TestVersion(ExternalBase):
 
7
    
 
8
    def test_version(self):
 
9
        out = self.run_bzr("version")[0]
 
10
        self.assertTrue(len(out) > 0)
 
11
        self.assertEquals(1,out.count(bzrlib.__version__))
 
12
        self.assertEquals(1,out.count("Using python interpreter:"))
 
13
        self.assertEquals(1,out.count("Using python standard library:"))
 
14
        self.assertEquals(1,out.count("Using bzrlib:"))
 
15
        self.assertEquals(1,out.count("Using bazaar configuration:"))