/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_sign_my_commits.py

  • Committer: Robert Collins
  • Date: 2008-08-20 02:07:36 UTC
  • mfrom: (3640 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3682.
  • Revision ID: robertc@robertcollins.net-20080820020736-g2xe4921zzxtymle
Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005 by Canonical Ltd
 
1
# Copyright (C) 2005 Canonical Ltd
2
2
# -*- coding: utf-8 -*-
3
 
 
 
3
#
4
4
# This program is free software; you can redistribute it and/or modify
5
5
# it under the terms of the GNU General Public License as published by
6
6
# the Free Software Foundation; either version 2 of the License, or
7
7
# (at your option) any later version.
8
 
 
 
8
#
9
9
# This program is distributed in the hope that it will be useful,
10
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
12
# GNU General Public License for more details.
13
 
 
 
13
#
14
14
# You should have received a copy of the GNU General Public License
15
15
# along with this program; if not, write to the Free Software
16
16
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
86
86
 
87
87
        self.monkey_patch_gpg()
88
88
 
89
 
        self.run_bzr('sign-my-commits', 'other')
 
89
        self.run_bzr('sign-my-commits other')
90
90
 
91
91
        self.assertSigned(repo, 'A')
92
92
        self.assertSigned(repo, 'B')
99
99
 
100
100
        self.monkey_patch_gpg()
101
101
 
102
 
        self.run_bzr('sign-my-commits', '.', 'Alternate <alt@foo.com>')
 
102
        self.run_bzr(['sign-my-commits', '.', 'Alternate <alt@foo.com>'])
103
103
 
104
104
        self.assertUnsigned(repo, 'A')
105
105
        self.assertUnsigned(repo, 'B')
112
112
 
113
113
        self.monkey_patch_gpg()
114
114
 
115
 
        out = self.run_bzr('sign-my-commits', '--dry-run')[0]
 
115
        out = self.run_bzr('sign-my-commits --dry-run')[0]
116
116
 
117
117
        self.assertEquals('A\nB\nC\nSigned 3 revisions\n', out)
118
118
        self.assertUnsigned(repo, 'A')