~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

Merge from bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2007 Canonical Ltd
 
1
# Copyright (C) 2007, 2008 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
34
34
    def test_version(self):
35
35
        out = self.run_bzr("version")[0]
36
36
        self.assertTrue(len(out) > 0)
37
 
        self.assertEquals(1, out.count(bzrlib.__version__))
 
37
        # must occur once; could be more if it matches a file path
 
38
        first = out.splitlines()[0]
 
39
        self.assertEqualDiff(first,
 
40
            "Bazaar (bzr) %s" % bzrlib.__version__)
38
41
        self.assertContainsRe(out, r"(?m)^  Python interpreter:")
39
42
        self.assertContainsRe(out, r"(?m)^  Python standard library:")
40
43
        self.assertContainsRe(out, r"(?m)^  bzrlib:")