~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_transport_log.py

  • Committer: Andrew Bennetts
  • Date: 2010-01-15 03:58:20 UTC
  • mfrom: (4963 +trunk)
  • mto: (4973.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4975.
  • Revision ID: andrew.bennetts@canonical.com-20100115035820-ilb3t36swgzq6v1l
MergeĀ lp:bzr.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
        # operations such as mkdir are logged
37
37
        mutter('where are you?')
38
38
        logging_transport.mkdir('subdir')
39
 
        self.assertContainsRe(self._get_log(True),
40
 
            r'mkdir memory\+\d+://.*subdir')
41
 
        self.assertContainsRe(self._get_log(True),
42
 
            '  --> None')
 
39
        log = self.get_log()
 
40
        self.assertContainsRe(log, r'mkdir memory\+\d+://.*subdir')
 
41
        self.assertContainsRe(log, '  --> None')
43
42
        # they have the expected effect
44
43
        self.assertTrue(logging_transport.has('subdir'))
45
44
        # and they operate on the underlying transport