~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_gpg.py

  • Committer: Jonathan Riddell
  • Date: 2011-07-12 14:30:06 UTC
  • mfrom: (6023 +trunk)
  • mto: This revision was merged to the branch mainline in revision 6024.
  • Revision ID: jriddell@canonical.com-20110712143006-bx2m5wr62yew0ks6
mergeĀ inĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
class FakeConfig(object):
29
29
 
 
30
    def gpg_signing_key(self):
 
31
        return "amy@example.com"
 
32
 
30
33
    def gpg_signing_command(self):
31
34
        return "false"
32
35
 
38
41
 
39
42
    def test_signing_command_line(self):
40
43
        my_gpg = gpg.GPGStrategy(FakeConfig())
41
 
        self.assertEqual(['false',  '--clearsign'],
 
44
        self.assertEqual(['false',  '--clearsign', '-u', 'amy@example.com'],
42
45
                         my_gpg._command_line())
43
46
 
44
47
    def test_checks_return_code(self):