()
| 82 | |
| 83 | |
| 84 | def test_add() -> None: |
| 85 | with open(CONFIG_FILENAME, 'w') as new_file: |
| 86 | new_file.write('[this]\n\tthat = true\n') |
| 87 | new_file.write('[something "other"]\n\there = false') |
| 88 | |
| 89 | config = Config() |
| 90 | config.add_file(CONFIG_FILENAME, 0) |
| 91 | assert 'this.that' in config |
| 92 | assert config.get_bool('this.that') |
| 93 | assert 'something.other.here' in config |
| 94 | assert not config.get_bool('something.other.here') |
| 95 | |
| 96 | |
| 97 | def test_add_aspath() -> None: |