~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/services/config/tests/test_config_lookup.py

  • Committer: Curtis Hovey
  • Date: 2011-12-29 05:40:17 UTC
  • mto: This revision was merged to the branch mainline in revision 14606.
  • Revision ID: curtis.hovey@canonical.com-20111229054017-e6ulob0k70kz3sj2
Renamed CanonicalConfig to LaunchpadConfig because that is what it is doing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
117
117
    def test_Config_uses_find_config_dir(self):
118
118
        instance_config_dir = self.setUpInstanceConfig('an_instance')
119
119
        # Create a very simple config file.
120
 
        cfg = config.CanonicalConfig('an_instance')
 
120
        cfg = config.LaunchpadConfig('an_instance')
121
121
        config_file = open(
122
122
            os.path.join(instance_config_dir, 'launchpad-lazr.conf'), 'w')
123
123
        config_file.write('[launchpad]\ndefault_batch_size=2323')
129
129
 
130
130
 
131
131
class TestGenerateOverrides(ConfigTestCase):
132
 
    """Test the generate_overrides method of CanonicalConfig."""
 
132
    """Test the generate_overrides method of LaunchpadConfig."""
133
133
 
134
134
    def test_generate_overrides(self):
135
135
        instance_dir = self.setUpInstanceConfig('zcmltest')
136
 
        cfg = config.CanonicalConfig('zcmltest')
 
136
        cfg = config.LaunchpadConfig('zcmltest')
137
137
        # The ZCML override file is generated in the root of the tree.
138
138
        # Set that root to the temporary directory.
139
139
        cfg.root = self.temp_config_root_dir