# Path: mozsvc/config.py
# def load_into_settings(filename, settings):
# def get_configurator(global_config, **settings):


import unittest
import tempfile
import os
from io import StringIO
from mozsvc.config import (Config, SettingsDict, load_into_settings,
                           get_configurator)
        settings = {"pyramid.testing": "test"}
        config = get_configurator(global_config, **settings)
        settings = config.get_settings()
        self.assertEqual(settings["pyramid.testing"], "test")
        self.assertEqual(settings["storage.e"], "f")
        self.assertEqual(settings["storage.g"], "h")
        self.assertEqual(settings["multi.once.storage.i"], "j")
        self.assertEqual(settings.getsection("multi")["once.storage.i"], "j")
        self.assertEqual(settings.getsection("multi.once")["storage.i"], "j")
        self.assertEqual(settings.getsection("multi.once.storage")["i"], "j")

    def test_get_configurator_nofile(self):
        global_config = {"blah": "blech"}
        settings = {"pyramid.testing": "test"}
        config = get_configurator(global_config, **settings)
        settings = config.get_settings()
        self.assertEqual(settings["pyramid.testing"], "test")

    def test_settings_dict_copy(self):
        settings = SettingsDict({
            "a.one": 1,
            "a.two": 2,
            "b.three": 3,
            "four": 4,
        })
        new_settings = settings.copy()
        self.assertEqual(settings, new_settings)
        self.assertTrue(isinstance(new_settings, SettingsDict))

    def test_settings_dict_getsection(self):

# Path: mozsvc/config.py
# def load_into_settings(filename, settings):
# def get_configurator(global_config, **settings):


# Path: mozsvc/tests/test_config.py
import unittest
import tempfile
import os
from io import StringIO
from mozsvc.config import (Config, SettingsDict, load_into_settings,
                           get_configurator)

        settings = {"pyramid.testing": "test"}
        config = get_configurator(global_config, **settings)
        settings = config.get_settings()
        self.assertEqual(settings["pyramid.testing"], "test")
        self.assertEqual(settings["storage.e"], "f")
        self.assertEqual(settings["storage.g"], "h")
        self.assertEqual(settings["multi.once.storage.i"], "j")
        self.assertEqual(settings.getsection("multi")["once.storage.i"], "j")
        self.assertEqual(settings.getsection("multi.once")["storage.i"], "j")
        self.assertEqual(settings.getsection("multi.once.storage")["i"], "j")

    def test_get_configurator_nofile(self):
        global_config = {"blah": "blech"}
        settings = {"pyramid.testing": "test"}
        config = get_configurator(global_config, **settings)
        settings = config.get_settings()
        self.assertEqual(settings["pyramid.testing"], "test")

    def test_settings_dict_copy(self):
        settings = SettingsDict({
            "a.one": 1,
            "a.two": 2,
            "b.three": 3,
            "four": 4,
        })
        new_settings = settings.copy()
        self.assertEqual(settings, new_settings)
        self.assertTrue(isinstance(new_settings, SettingsDict))

    def test_settings_dict_getsection(self):

        settings = SettingsDict({