~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_config.py

Fixes for issues brought up in John's review

Show diffs side-by-side

added added

removed removed

Lines of Context:
766
766
            config.POLICY_NONE)
767
767
 
768
768
    def test_set_user_option_recurse_false_section(self):
769
 
        # The following section has recurse=False set
 
769
        # The following section has recurse=False set.  The test is to
 
770
        # make sure that a normal option can be added to the section,
 
771
        # converting recurse=False to the norecurse policy.
770
772
        self.get_branch_config('http://www.example.com/norecurse')
771
 
        self.my_config.set_user_option('foo', 'bar',
772
 
                                       store=config.STORE_LOCATION)
 
773
        self.callDeprecated(['The recurse option is deprecated as of 0.13.  '
 
774
                             'The section "http://www.example.com/norecurse" '
 
775
                             'has been converted to use policies.'],
 
776
                            self.my_config.set_user_option,
 
777
                            'foo', 'bar', store=config.STORE_LOCATION)
773
778
        self.assertEqual(
774
779
            self.my_location_config._get_option_policy(
775
780
            'http://www.example.com/norecurse', 'foo'),