~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-02-11 04:02:41 UTC
  • mfrom: (5017.2.2 tariff)
  • Revision ID: pqm@pqm.ubuntu.com-20100211040241-w6n021dz0uus341n
(mbp) add import-tariff tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005-2010 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
88
88
        self.assertEqualSignature(repo, 'A')
89
89
        self.assertEqualSignature(repo, 'B')
90
90
        self.assertEqualSignature(repo, 'C')
91
 
 
92
 
    def test_resign_directory(self):
93
 
        """Test --directory option"""
94
 
        wt = BzrDir.create_standalone_workingtree('a')
95
 
        wt.commit("base A", allow_pointless=True, rev_id='A')
96
 
        wt.commit("base B", allow_pointless=True, rev_id='B')
97
 
        wt.commit("base C", allow_pointless=True, rev_id='C')
98
 
        repo = wt.branch.repository
99
 
        self.monkey_patch_gpg()
100
 
        self.run_bzr('re-sign --directory=a -r revid:A')
101
 
        self.assertEqualSignature(repo, 'A')
102
 
        self.run_bzr('re-sign -d a B')
103
 
        self.assertEqualSignature(repo, 'B')