~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testgpg.py

  • Committer: Aaron Bentley
  • Date: 2005-10-18 20:19:44 UTC
  • mfrom: (1463) (0.2.1)
  • mto: (1185.25.1)
  • mto: This revision was merged to the branch mainline in revision 1474.
  • Revision ID: abentley@panoramicfeedback.com-20051018201944-42864e79d8e9ad29
Merged more from Robert

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
        my_gpg._command_line = lambda:["cat", "-"]
51
51
        self.assertEqual("some content\nwith newlines\n",
52
52
                         my_gpg.sign("some content\nwith newlines\n"))
 
53
 
 
54
 
 
55
class TestDisabled(TestCase):
 
56
 
 
57
    def test_sign(self):
 
58
        self.assertRaises(errors.SigningFailed,
 
59
                          gpg.DisabledGPGStrategy(None).sign, 'content')