~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_commit.py

  • Committer: Aaron Bentley
  • Date: 2007-03-02 03:58:17 UTC
  • mto: (2323.6.9 0.15-integration)
  • mto: This revision was merged to the branch mainline in revision 2330.
  • Revision ID: aaron.bentley@utoronto.ca-20070302035817-hetup3803ogn6f3n
add header/trailer to fake clearsigned texts

Show diffs side-by-side

added added

removed removed

Lines of Context:
345
345
                                                      allow_pointless=True,
346
346
                                                      rev_id='B',
347
347
                                                      working_tree=wt)
348
 
            self.assertEqual(Testament.from_revision(branch.repository,
349
 
                             'B').as_short_text(),
 
348
            def sign(text):
 
349
                return bzrlib.gpg.LoopbackGPGStrategy(None).sign(text)
 
350
            self.assertEqual(sign(Testament.from_revision(branch.repository,
 
351
                             'B').as_short_text()),
350
352
                             branch.repository.get_signature_text('B'))
351
353
        finally:
352
354
            bzrlib.gpg.GPGStrategy = oldstrategy