Пример #1
0
    def test_defaults(self, section):
        level = StrictLevel([])

        if section == "json":
            assert level.setting_for(section)
        else:
            assert not level.setting_for(section)
Пример #2
0
    def test_defaults(self, section):
        level = StrictLevel([])

        with pytest.raises(exceptions.InvalidConfigurationException):
            level.setting_for(section)