def test_enabling_just_one_module_in_diretory(
        self,
        test_config_directory,
    ):
        enabling_statement = {'name': 'south_america::brazil'}
        directory_module = DirectoryModuleSource(
            enabling_statement=enabling_statement,
            modules_directory=test_config_directory / 'freezed_modules',
        )
        assert directory_module.modules({}) == {
            'south_america::brazil': {
                'on_startup': {
                    'run': 'echo Greetings from Brazil!',
                },
            },
        }

        assert directory_module.context({}) == {
            'geography': {
                'brazil': {
                    'capitol': 'Brasilia',
                },
                'argentina': {
                    'capitol': 'Buenos Aires',
                },
            },
        }
    def test_getting_config_dict_from_directory_module(
        self,
        test_config_directory,
    ):
        enabling_statement = {'name': 'north_america::USA'}
        directory_module = DirectoryModuleSource(
            enabling_statement=enabling_statement,
            modules_directory=test_config_directory / 'freezed_modules',
        )
        assert directory_module.modules({}) == {
            'north_america::USA': {
                'on_startup': {
                    'run': 'echo Greetings from the USA!',
                },
            },
        }

        assert directory_module.context({}) == {
            'geography': {
                'USA': {
                    'capitol': 'Washington D.C.',
                },
            },
        }