~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-14 05:36:01 UTC
  • mto: This revision was merged to the branch mainline in revision 1456.
  • Revision ID: robertc@lifelesslap.robertcollins.net-20051014053601-3d7ae175e179ad85
BranchConfigs inherit signature_checking policy from their LocationConfig.

Show diffs side-by-side

added added

removed removed

Lines of Context:
434
434
        self.assertEqual("Robert Collins <robertc@example.org>",
435
435
                         my_config.username())
436
436
    
 
437
    def test_signatures_forced(self):
 
438
        branch = FakeBranch()
 
439
        my_config = config.BranchConfig(branch)
 
440
        config_file = StringIO(sample_always_signatures)
 
441
        (my_config._get_location_config().
 
442
            _get_global_config()._get_parser(config_file))
 
443
        self.assertEqual(config.CHECK_ALWAYS, my_config.signature_checking())