~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-04-02 01:44:26 UTC
  • mfrom: (6518 +trunk)
  • mto: This revision was merged to the branch mainline in revision 6519.
  • Revision ID: jelmer@samba.org-20120402014426-0o5qtysohyl006b2
merge bzr.dev.

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'],
 
54
        self.assertEqual(['false',  '--clearsign', '-u', 'amy@example.com', '--no-tty'],
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'],
 
63
        self.assertEqual(['false',  '--clearsign', '-u', 'amy@example.com', '--no-tty'],
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'],
 
71
        self.assertEqual(['false',  '--clearsign', '-u', 'amy@example.com', '--no-tty'],
72
72
                         my_gpg._command_line())
73
73
 
74
74
    def test_checks_return_code(self):