def test_configuration(self):
        config = Configuration()

        with tempfile.TemporaryDirectory() as directory:

            for filename in ["d.conf", "a.conf", "c", "b.conf"]:
                with open(os.path.join(directory, filename), mode="w") as f:
                    f.write("")

            config.read_from_directory(directory)

            assert [os.path.relpath(path, directory) for path in config.get_sources()] == \
                ["a.conf", "b.conf", "d.conf"]
    def configuration_test(self):
        config = Configuration()

        with tempfile.TemporaryDirectory() as directory:

            for filename in ["d.conf", "a.conf", "c", "b.conf"]:
                with open(os.path.join(directory, filename), mode="w") as f:
                    f.write("")

            config.read_from_directory(directory)

            self.assertEqual(
                [os.path.relpath(path, directory) for path in config.get_sources()],
                ["a.conf", "b.conf", "d.conf"]
            )