~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_gpg.py

  • Committer: Martin Pool
  • Date: 2011-07-04 21:10:37 UTC
  • mto: (6034.1.1 filter-tree)
  • mto: This revision was merged to the branch mainline in revision 6035.
  • Revision ID: mbp@canonical.com-20110704211037-ro3417imj3oqnqxp
Support exporting tarballs from ContentFilterTree

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
 
 
33
30
    def gpg_signing_command(self):
34
31
        return "false"
35
32
 
41
38
 
42
39
    def test_signing_command_line(self):
43
40
        my_gpg = gpg.GPGStrategy(FakeConfig())
44
 
        self.assertEqual(['false',  '--clearsign', '-u', 'amy@example.com'],
 
41
        self.assertEqual(['false',  '--clearsign'],
45
42
                         my_gpg._command_line())
46
43
 
47
44
    def test_checks_return_code(self):