~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_gpg.py

(vila) Fix command line override handling for acceptable_keys (Vincent
 Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
499
499
        self.assertEqual(my_gpg.acceptable_keys,
500
500
                         [u'B5DEED5FCB15DAE6ECEF919587681B1EE3080E45'])
501
501
 
 
502
    def test_set_acceptable_keys_from_config(self):
 
503
        self.requireFeature(features.gpgme)
 
504
        self.import_keys()
 
505
        my_gpg = gpg.GPGStrategy(FakeConfig(
 
506
                'acceptable_keys=bazaar@example.com'))
 
507
        my_gpg.set_acceptable_keys(None)
 
508
        self.assertEqual(my_gpg.acceptable_keys,
 
509
                         [u'B5DEED5FCB15DAE6ECEF919587681B1EE3080E45'])
 
510
 
502
511
    def test_set_acceptable_keys_unknown(self):
503
512
        self.requireFeature(features.gpgme)
504
513
        my_gpg = gpg.GPGStrategy(FakeConfig())