~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testconfig.py

  • Committer: Robert Collins
  • Date: 2005-10-17 11:41:07 UTC
  • mfrom: (1442.1.60)
  • Revision ID: robertc@robertcollins.net-20051017114107-f5586285d825c105
Merge in first part of GPG support.

This adds check_signatures config support, triams back the transport api
to be leaner and easier to hook in suffixes - non primary streams in the store
associated with the fileid that primary data is stored in, a gpg module which
will encapsulate all signing and checking operations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
275
275
        self.assertEqual("gnome-gpg", my_config.gpg_signing_command())
276
276
        self.assertEqual(False, my_config.signature_needed())
277
277
 
 
278
    def test_gpg_signing_command_unset(self):
 
279
        config_file = StringIO("")
 
280
        my_config = config.GlobalConfig()
 
281
        my_config._parser = my_config._get_parser(file=config_file)
 
282
        self.assertEqual("gpg", my_config.gpg_signing_command())
 
283
 
278
284
 
279
285
class TestLocationConfig(TestCase):
280
286