def test_load_with_nested_spec(self):
        """Test loading a configuration with a nested specification
        """
        spec = ("[section_1]\n"
                "[[section_a]]\n"
                "a = integer(min=0, default=5)")
        conf.load(self.filename,
                  spec=(
                      [option.encode() for option in spec.split('\n')]))
        self.assertTrue('section_1.section_a.a' in conf)
        self.assertIsInstance(conf['section_1.section_a.a'], int)
        self.assertEqual(conf['section_1.section_a.a'], 5)

        self.assertTrue(conf in 'section_1.a')
        self.assertIsInstance(conf['section_1.a'], str)
        self.assertEqual(conf['section_1.a'], '12')
dataset/ETHPy150Open duerrp/pyexperiment/tests/test_config.py/TestConfSpec.test_load_with_nested_spec/swapped operands of `in`