(self)
| 472 | self.assertEqual("b" in c, False) |
| 473 | |
| 474 | def test_auto_section(self): |
| 475 | c = Config() |
| 476 | self.assertNotIn("A", c) |
| 477 | assert not c._has_section("A") |
| 478 | A = c.A |
| 479 | A.foo = "hi there" |
| 480 | self.assertIn("A", c) |
| 481 | assert c._has_section("A") |
| 482 | self.assertEqual(c.A.foo, "hi there") |
| 483 | del c.A |
| 484 | self.assertEqual(c.A, Config()) |
| 485 | |
| 486 | def test_merge_doesnt_exist(self): |
| 487 | c1 = Config() |
nothing calls this directly
no test coverage detected