~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_gpg.py

  • Committer: Jelmer Vernooij
  • Date: 2012-06-29 08:12:32 UTC
  • mfrom: (6437.63.2 2.5)
  • mto: This revision was merged to the branch mainline in revision 6532.
  • Revision ID: jelmer@samba.org-20120629081232-h0yexc1e9tezazrn
Up-merge 2.5, which reverses --no-tty patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
        self.my_gpg = gpg.GPGStrategy(FakeConfig())
52
52
 
53
53
    def test_signing_command_line(self):
54
 
        self.assertEqual(['false',  '--clearsign', '-u', 'amy@example.com', '--no-tty'],
 
54
        self.assertEqual(['false',  '--clearsign', '-u', 'amy@example.com'],
55
55
                         self.my_gpg._command_line())
56
56
 
57
57
    def test_signing_command_line_from_default(self):
60
60
email=Amy <amy@example.com>
61
61
gpg_signing_key=default
62
62
gpg_signing_command=false'''))
63
 
        self.assertEqual(['false',  '--clearsign', '-u', 'amy@example.com', '--no-tty'],
 
63
        self.assertEqual(['false',  '--clearsign', '-u', 'amy@example.com'],
64
64
                         my_gpg._command_line())
65
65
 
66
66
    def test_signing_command_line_from_email(self):
68
68
        my_gpg = gpg.GPGStrategy(FakeConfig('''
69
69
email=Amy <amy@example.com>
70
70
gpg_signing_command=false'''))
71
 
        self.assertEqual(['false',  '--clearsign', '-u', 'amy@example.com', '--no-tty'],
 
71
        self.assertEqual(['false',  '--clearsign', '-u', 'amy@example.com'],
72
72
                         my_gpg._command_line())
73
73
 
74
74
    def test_checks_return_code(self):