def test_overwrite_wewroot_config(self): config = ConfigManager(temp_config_file) config.write(read_file('config_overwritewebroot_input.php')) config.overwrite_webroot() self.assertEquals(read_file('config_overwritewebroot_output.php'), config.read())
def test_overwrite_wewroot_config_multi_run_no_harm(self): config = ConfigManager(temp_config_file) config.write(read_file('config_overwritewebroot_existing_output.php')) config.overwrite_webroot() self.assertEquals(read_file('config_overwritewebroot_existing_output.php'), config.read())
def test_trusted_config_multi_run_ho_harm(self): config = ConfigManager(temp_config_file) config.write(read_file('config_trusted_domains_output.php')) config.trusted('test.domain', 1000) self.assertEquals(read_file('config_trusted_domains_output.php'), config.read())