~rogpeppe/juju-deployer/speed-up-inheritance

« back to all changes in this revision

Viewing changes to deployer/tests/test_config.py

  • Committer: rogpeppe
  • Date: 2017-03-17 13:52:21 UTC
  • Revision ID: roger.peppe@canonical.com-20170317135221-437750xlb3m3uiem
add a test for the inheritance infinite loop

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
        # over-ridden
86
86
        self.assertEquals(db.config.get('tuning-level'), 'fastest')
87
87
 
 
88
    def test_large_inherits_config(self):
 
89
        config = ConfigStack([
 
90
            os.path.join(self.test_data_dir, "large-inherits.cfg")])
 
91
        config.load()
 
92
        config.get('x0')
 
93
 
88
94
    def test_multi_inheritance_multi_files(self):
89
95
        config = ConfigStack([
90
96
            os.path.join(self.test_data_dir, "openstack", "openstack.cfg"),