~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/branch_implementations/test_branch.py

  • Committer: Aaron Bentley
  • Date: 2007-03-07 20:14:06 UTC
  • mto: (2323.6.9 0.15-integration)
  • mto: This revision was merged to the branch mainline in revision 2330.
  • Revision ID: abentley@panoramicfeedback.com-20070307201406-5bxjy8wlmmcxy0eh
Fix failing tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
314
314
        from bzrlib.testament import Testament
315
315
        strategy = gpg.LoopbackGPGStrategy(None)
316
316
        branch.repository.sign_revision('A', strategy)
317
 
        self.assertEqual(Testament.from_revision(branch.repository, 
318
 
                         'A').as_short_text(),
 
317
        self.assertEqual('-----BEGIN PSEUDO-SIGNED CONTENT-----\n' +
 
318
                         Testament.from_revision(branch.repository,
 
319
                         'A').as_short_text() +
 
320
                         '-----END PSUDO-SIGNED CONTENT-----\n',
319
321
                         branch.repository.get_signature_text('A'))
320
322
 
321
323
    def test_store_signature(self):
327
329
                          branch.repository.has_signature_for_revision_id,
328
330
                          'A')
329
331
        wt.commit("base", allow_pointless=True, rev_id='A')
330
 
        self.assertEqual('FOO', 
 
332
        self.assertEqual('-----BEGIN PSEUDO-SIGNED CONTENT-----\n'
 
333
                         'FOO-----END PSUDO-SIGNED CONTENT-----\n',
331
334
                         branch.repository.get_signature_text('A'))
332
335
 
333
336
    def test_branch_keeps_signatures(self):