~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Daniel Watkins
  • Date: 2008-03-03 13:47:06 UTC
  • mto: This revision was merged to the branch mainline in revision 3583.
  • Revision ID: d.m.watkins@warwick.ac.uk-20080303134706-9irnyekq6bkb1mfk
StrengthenedĀ tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
        tree = self.make_branch_and_tree('.')
46
46
        tree.commit('foo')
47
47
        out, err = self.run_bzr('check --repo')
48
 
        self.assertStartsWith(err, "Checking repository at '")
 
48
        self.assertContainsRe(err, r"^Checking repository at '.*'\.\n"
 
49
                                   r"checked repository.*\n"
 
50
                                   r"     1 revisions\n"
 
51
                                   r"     0 file-ids\n"
 
52
                                   r"     0 unique file texts\n"
 
53
                                   r"     0 repeated file texts\n"
 
54
                                   r"     0 unreferenced text versions$")
49
55
 
50
56
    def test_check_tree(self):
51
57
        tree = self.make_branch_and_tree('.')
52
58
        tree.commit('foo')
53
59
        out, err = self.run_bzr('check --tree')
54
 
        self.assertStartsWith(err, "Checking working tree at '")
 
60
        self.assertContainsRe(err, r"^Checking working tree at '.*'\.\n$")