/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/tests/blackbox/test_log.py

Fix a bunch of tests on python3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
504
504
    def assertUseShortDeltaFormat(self, cmd):
505
505
        log = self.run_bzr(cmd)[0]
506
506
        # Check that we use the short status format
507
 
        self.assertContainsRe(log, '(?m)^\s*A  hello.txt$')
508
 
        self.assertNotContainsRe(log, '(?m)^\s*added:$')
 
507
        self.assertContainsRe(log, '(?m)^\\s*A  hello.txt$')
 
508
        self.assertNotContainsRe(log, '(?m)^\\s*added:$')
509
509
 
510
510
    def assertUseLongDeltaFormat(self, cmd):
511
511
        log = self.run_bzr(cmd)[0]
512
512
        # Check that we use the long status format
513
 
        self.assertNotContainsRe(log, '(?m)^\s*A  hello.txt$')
514
 
        self.assertContainsRe(log, '(?m)^\s*added:$')
 
513
        self.assertNotContainsRe(log, '(?m)^\\s*A  hello.txt$')
 
514
        self.assertContainsRe(log, '(?m)^\\s*added:$')
515
515
 
516
516
    def test_log_short_verbose(self):
517
517
        self.assertUseShortDeltaFormat(['log', '--short', '-v'])