~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

add signatures feature to bzr log

Show diffs side-by-side

added added

removed removed

Lines of Context:
442
442
        self.assertContainsRe(log, r'tags: tag1')
443
443
 
444
444
 
 
445
class TestLogSignatures(TestLog):
 
446
 
 
447
    def test_log_with_signatures(self):
 
448
        self.requireFeature(features.gpgme)
 
449
 
 
450
        tree = self.make_linear_branch(format='dirstate-tags')
 
451
 
 
452
        log = self.run_bzr("log --signatures")[0]
 
453
        self.assertTrue('signature: no signature' in log)
 
454
 
 
455
    def test_log_without_signatures(self):
 
456
        self.requireFeature(features.gpgme)
 
457
 
 
458
        tree = self.make_linear_branch(format='dirstate-tags')
 
459
 
 
460
        log = self.run_bzr("log")[0]
 
461
        self.assertFalse('signature: no signature' in log)
 
462
 
 
463
 
445
464
class TestLogVerbose(TestLog):
446
465
 
447
466
    def setUp(self):