(self)
| 574 | self.assertIn("Foo", cfg) |
| 575 | |
| 576 | def test_getitem_section(self): |
| 577 | cfg = Config() |
| 578 | self.assertNotIn("Foo", cfg) |
| 579 | Foo = cfg["Foo"] |
| 580 | assert isinstance(Foo, Config) |
| 581 | self.assertIn("Foo", cfg) |
| 582 | |
| 583 | def test_getattr_not_section(self): |
| 584 | cfg = Config() |