~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Robert Collins
  • Date: 2007-07-04 08:08:13 UTC
  • mfrom: (2572 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2587.
  • Revision ID: robertc@robertcollins.net-20070704080813-wzebx0r88fvwj5rq
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005 by Canonical Ltd
 
1
# Copyright (C) 2005 Canonical Ltd
2
2
# -*- coding: utf-8 -*-
3
3
#
4
4
# This program is free software; you can redistribute it and/or modify
56
56
    def assertEqualSignature(self, repo, revision_id):
57
57
        """Assert a signature is stored correctly in repository."""
58
58
        self.assertEqual(
59
 
            Testament.from_revision(repo, revision_id).as_short_text(),
 
59
            '-----BEGIN PSEUDO-SIGNED CONTENT-----\n' +
 
60
            Testament.from_revision(repo, revision_id).as_short_text() +
 
61
            '-----END PSEUDO-SIGNED CONTENT-----\n',
60
62
            repo.get_signature_text(revision_id))
61
63
 
62
64
    def test_resign(self):